fix: add initContainers to clean lost+found from Longhorn PVCs
This commit is contained in:
@@ -13,7 +13,7 @@ spec:
|
||||
releaseName: porthole
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
- ../../argocd/values-porthole.yaml
|
||||
- values-cluster.yaml
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: porthole
|
||||
|
||||
@@ -50,6 +50,16 @@ 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 }}
|
||||
|
||||
@@ -46,6 +46,16 @@ 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 }}
|
||||
|
||||
Reference in New Issue
Block a user