a
This commit is contained in:
44
ksp-lmpserver/deployment.yaml
Normal file
44
ksp-lmpserver/deployment.yaml
Normal 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
|
9
ksp-lmpserver/kustomization.yaml
Normal file
9
ksp-lmpserver/kustomization.yaml
Normal 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
|
16
ksp-lmpserver/service.yaml
Normal file
16
ksp-lmpserver/service.yaml
Normal 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
|
Reference in New Issue
Block a user