Remove lost+found folder in database root on initial start

This commit is contained in:
David Heidrich 2018-07-16 16:27:58 +02:00
parent 9e65499c10
commit 6fea7f7cb2
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@ spec:
{{ include "harbor.labels" . | indent 8 }}
component: database
spec:
initContainers:
- name: "remove-lost-found"
image: "busybox:1.25.0"
command: ["rm", "-Rf", "/var/lib/postgresql/data/lost+found"]
volumeMounts:
- name: database-data
mountPath: /var/lib/postgresql/data
containers:
- name: database
image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}