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: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
volumes:
- name: minecraft
persistentVolumeClaim:
claimName: {{ include "minecraft.fullname" . }}
initContainers: initContainers:
- name: download - name: download
image: alpine:3.12.1 image: alpine:3.12.1
@ -37,7 +41,7 @@ spec:
- -c - -c
- '[[ ! -d /minecraft/world ]] && wget -O- "{{ .Values.downloadURL }}" | tar -x --strip-components=1 -C /minecraft || true' - '[[ ! -d /minecraft/world ]] && wget -O- "{{ .Values.downloadURL }}" | tar -x --strip-components=1 -C /minecraft || true'
volumeMounts: volumeMounts:
- name: {{ include "minecraft.fullname" . }} - name: minecraft
mountPath: /minecraft mountPath: /minecraft
resources: resources:
requests: requests:
@ -56,7 +60,7 @@ spec:
- name: JAVA_OPTS - name: JAVA_OPTS
value: '-Xms3500m -Xmx3500m' value: '-Xms3500m -Xmx3500m'
volumeMounts: volumeMounts:
- name: {{ include "minecraft.fullname" . }} - name: minecraft
mountPath: /minecraft mountPath: /minecraft
ports: ports:
- containerPort: 25565 - containerPort: 25565