Add working minecraft configuration

This commit is contained in:
Tanguy Herbron 2022-06-06 18:41:15 +02:00
parent 130fb8aef2
commit a1f6d316ac
2 changed files with 23 additions and 0 deletions

View File

@ -21,3 +21,15 @@ spec:
env:
- name: EULA
value: "TRUE"
volumeMounts:
- name: minecraft-data
mountPath: /data/world
subPath: world
volumes:
- name: minecraft-data
persistentVolumeClaim:
claimName: minecraft-pvc
nodeSelector:
kubernetes.io/hostname: "archimedes"
securityContext:
fsGroup: 1000

11
minecraft/pvc.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: minecraft-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: flat-storage-class