fix: use subdirectories to avoid Longhorn lost+found conflict
This commit is contained in:
@@ -50,23 +50,13 @@ spec:
|
||||
tolerations:
|
||||
{{ $tols | indent 8 }}
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- name: cleanup-lost-found
|
||||
image: busybox:1.36
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- rm -rf /data/lost+found || true
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: minio
|
||||
image: {{ printf "%s:%s" .Values.images.minio.repository .Values.images.minio.tag | quote }}
|
||||
imagePullPolicy: {{ .Values.images.minio.pullPolicy }}
|
||||
args:
|
||||
- server
|
||||
- /data
|
||||
- /data/miniodata
|
||||
- "--console-address=:{{ .Values.minio.service.consolePort }}"
|
||||
ports:
|
||||
- name: s3
|
||||
@@ -101,6 +91,7 @@ spec:
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
subPath: miniodata
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
|
||||
@@ -46,16 +46,6 @@ spec:
|
||||
tolerations:
|
||||
{{ $tols | indent 8 }}
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- name: cleanup-lost-found
|
||||
image: busybox:1.36
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- rm -rf /var/lib/postgresql/data/lost+found || true
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
containers:
|
||||
- name: postgres
|
||||
image: {{ printf "%s:%s" .Values.images.postgres.repository .Values.images.postgres.tag | quote }}
|
||||
@@ -73,6 +63,8 @@ spec:
|
||||
secretKeyRef:
|
||||
name: {{ include "tline.secretName" . }}
|
||||
key: POSTGRES_PASSWORD
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
|
||||
Reference in New Issue
Block a user