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,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ksp-dmpserver
spec:
selector:
matchLabels:
app: ksp-dmpserver
template:
metadata:
labels:
app: ksp-dmpserver
spec:
volumes:
- name: data
hostPath:
path: /data/ksp-server
containers:
- name: ksp-dmpserver
image: ksp-dmpserver
resources:
limits:
cpu: '1'
memory: '512Mi'
ports:
- name: ksp
protocol: TCP
containerPort: 6702
volumeMounts:
- name: data
mountPath: /opt/DMPServer/Config
subPath: Config
- name: data
mountPath: /opt/DMPServer/Plugins
subPath: Plugins
- name: data
mountPath: /opt/DMPServer/Universe
subPath: Universe

View File

@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml
images:
- name: ksp-dmpserver
newName: ghcr.io/midymidy-mc/ksp-dmpserver
newTag: v0.3.8.3
namespace: game

View File

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