File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
name : minecraft
3
- version : 4.18 .0
3
+ version : 4.19 .0
4
4
appVersion : SeeValues
5
5
home : https://minecraft.net/
6
6
description : Minecraft server
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ You can watch for EXTERNAL-IP to populate by running:
39
39
40
40
{{- end }}
41
41
42
- {{- if .Values.persistence.dataDir.enabled }}
42
+ {{- if or .Values.persistence.dataDir.enabled .Values.persistence.altDataVolumeName }}
43
43
{{- else }}
44
44
45
45
############################################################################
Original file line number Diff line number Diff line change @@ -149,9 +149,14 @@ spec:
149
149
volumeMounts :
150
150
- name : tmp
151
151
mountPath : /tmp
152
+ {{- if .Values.persistence.altDataVolumeName }}
153
+ - name : {{ .Values.persistence.altDataVolumeName }}
154
+ mountPath : /data
155
+ {{- else }}
152
156
- name : datadir
153
157
mountPath : /data
154
158
readOnly : true
159
+ {{- end }}
155
160
- name : backupdir
156
161
mountPath : {{ default "/backups" .Values.mcbackup.destDir }}
157
162
{{- if or (eq .Values.mcbackup.backupMethod "rclone") (eq (include "isResticWithRclone" $) "true") }}
@@ -413,11 +418,16 @@ spec:
413
418
volumeMounts :
414
419
- name : tmp
415
420
mountPath : /tmp
421
+ {{- if .Values.persistence.altDataVolumeName }}
422
+ - name : {{ .Values.persistence.altDataVolumeName }}
423
+ mountPath : /data
424
+ {{- else }}
416
425
- name : datadir
417
426
mountPath : /data
418
427
{{- if (and .Values.persistence.dataDir.enabled .Values.persistence.dataDir.subPath) }}
419
428
subPath : {{ .Values.persistence.dataDir.subPath }}
420
429
{{- end }}
430
+ {{- end }}
421
431
- name : backupdir
422
432
mountPath : {{ default "/backups" .Values.mcbackup.destDir }}
423
433
readOnly : true
Original file line number Diff line number Diff line change @@ -399,6 +399,8 @@ envFrom: []
399
399
persistence :
400
400
labels : {}
401
401
annotations : {}
402
+ # # specify an alternative volume to be mounted to /data instead of datadir.
403
+ # altDataVolumeName: ""
402
404
# # minecraft data Persistent Volume Storage Class
403
405
# # If defined, storageClassName: <storageClass>
404
406
# # If set to "-", storageClassName: "", which disables dynamic provisioning
You can’t perform that action at this time.
0 commit comments