From b7cce85dd0a6b3916870745e970e31ec37c7ff15 Mon Sep 17 00:00:00 2001 From: HDW Date: Mon, 27 Apr 2026 16:47:28 +0200 Subject: [PATCH] add avorion --- apps/deployment.yaml | 35 +++++++++++++++++++++++++++++++++++ apps/pvc.yaml | 10 ++++++++++ apps/service.yaml | 21 +++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 apps/deployment.yaml create mode 100644 apps/pvc.yaml create mode 100644 apps/service.yaml diff --git a/apps/deployment.yaml b/apps/deployment.yaml new file mode 100644 index 0000000..a1b0aaa --- /dev/null +++ b/apps/deployment.yaml @@ -0,0 +1,35 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: avorion-server +spec: + replicas: 1 + selector: + matchLabels: + app: avorion + template: + metadata: + labels: + app: avorion + spec: + containers: + - name: avorion + image: rfvgyhn/avorion:latest + ports: + - containerPort: 27000 + protocol: UDP + - containerPort: 27000 + protocol: TCP + - containerPort: 27003 + protocol: UDP + - containerPort: 27020 + protocol: UDP + - containerPort: 27021 + protocol: UDP + volumeMounts: + - name: data + mountPath: /root/.avorion + volumes: + - name: data + persistentVolumeClaim: + claimName: avorion-data diff --git a/apps/pvc.yaml b/apps/pvc.yaml new file mode 100644 index 0000000..0f2aff6 --- /dev/null +++ b/apps/pvc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: avorion-data +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi # Je nach Bedarf anpassen diff --git a/apps/service.yaml b/apps/service.yaml new file mode 100644 index 0000000..95fddfc --- /dev/null +++ b/apps/service.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: Service +metadata: + name: avorion-service +spec: + selector: + app: avorion + ports: + - name: game-udp + port: 27000 + targetPort: 27000 + protocol: UDP + - name: game-tcp + port: 27000 + targetPort: 27000 + protocol: TCP + - name: steam-query + port: 27003 + targetPort: 27003 + protocol: UDP + type: LoadBalancer