diff --git a/zombi/minecraft/templates/deployment.yaml b/zombi/minecraft/templates/deployment.yaml index 2d2586b..a44bf5e 100644 --- a/zombi/minecraft/templates/deployment.yaml +++ b/zombi/minecraft/templates/deployment.yaml @@ -28,6 +28,10 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: 30 + volumes: + - name: minecraft + persistentVolumeClaim: + claimName: {{ include "minecraft.fullname" . }} initContainers: - name: download image: alpine:3.12.1 @@ -37,7 +41,7 @@ spec: - -c - '[[ ! -d /minecraft/world ]] && wget -O- "{{ .Values.downloadURL }}" | tar -x --strip-components=1 -C /minecraft || true' volumeMounts: - - name: {{ include "minecraft.fullname" . }} + - name: minecraft mountPath: /minecraft resources: requests: @@ -56,7 +60,7 @@ spec: - name: JAVA_OPTS value: '-Xms3500m -Xmx3500m' volumeMounts: - - name: {{ include "minecraft.fullname" . }} + - name: minecraft mountPath: /minecraft ports: - containerPort: 25565