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