Reference pvc
This commit is contained in:
parent
b99f2ebc8c
commit
6bad16fe0a
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue