From a1f6d316acea515b8adb1178952de245ef108be4 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 6 Jun 2022 18:41:15 +0200 Subject: [PATCH] Add working minecraft configuration --- minecraft/deployment.yaml | 12 ++++++++++++ minecraft/pvc.yaml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 minecraft/pvc.yaml 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