This commit is contained in:
Sense T
2022-10-01 09:09:30 +00:00
parent 938db68be9
commit ffef0a5d92
19 changed files with 429 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ksp-lmpserver
spec:
selector:
matchLabels:
app: ksp-lmpserver
template:
metadata:
labels:
app: ksp-lmpserver
spec:
volumes:
- name: data
hostPath:
path: /data/ksp-lmpserver
containers:
- name: ksp-lmpserver
image: ghcr.io/lunamultiplayer/lunamultiplayer/server:master
imagePullPolicy: Always
stdin: true
tty: true
resources:
limits:
cpu: '1'
memory: '512Mi'
ports:
- name: ksp
protocol: UDP
containerPort: 8800
- protocol: TCP
containerPort: 8900
name: nport
volumeMounts:
- name: data
mountPath: /LMPServer/Config
subPath: Config
- name: data
mountPath: /LMPServer/Plugins
subPath: Plugins
- name: data
mountPath: /LMPServer/Universe
subPath: Universe

View File

@@ -0,0 +1,9 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml
namespace: game

View File

@@ -0,0 +1,16 @@
kind: Service
apiVersion: v1
metadata:
name: ksp-lmpserver
spec:
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6
selector:
app: ksp-lmpserver
ports:
- port: 8800
protocol: UDP
targetPort: ksp