apiVersion: apps/v1 kind: Deployment metadata: namespace: minecraft name: stacia spec: replicas: 1 selector: matchLabels: app: stacia template: metadata: labels: app: stacia spec: restartPolicy: Always terminationGracePeriodSeconds: 10 containers: - name: stacia image: gitea.jsme.be/jeffrey/stacia:1.3.3 imagePullPolicy: Always resources: requests: cpu: 1000m memory: 4Gi limits: cpu: 2000m memory: 8Gi volumeMounts: - name: world mountPath: /opt/minecraft/world - name: backups mountPath: /opt/minecraft/backups subPath: stacia - name: properties-file mountPath: /opt/minecraft/server.properties subPath: server.properties ports: - containerPort: 25565 - containerPort: 25575 volumes: - name: world persistentVolumeClaim: claimName: stacia-pvc - name: backups persistentVolumeClaim: claimName: minecraft-backups - name: properties-file configMap: name: stacia-properties