Reference pvc

This commit is contained in:
paul 2021-01-30 21:11:06 +01:00
parent b99f2ebc8c
commit 6bad16fe0a

View file

@ -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