diff --git a/minecraft/deployment.yaml b/minecraft/deployment.yaml index 0ef998e..c7da333 100644 --- a/minecraft/deployment.yaml +++ b/minecraft/deployment.yaml @@ -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 diff --git a/minecraft/pvc.yaml b/minecraft/pvc.yaml new file mode 100644 index 0000000..28dda68 --- /dev/null +++ b/minecraft/pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: minecraft-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi + storageClassName: flat-storage-class