diff --git a/stable/ghost/templates/deployment.yaml b/stable/ghost/templates/deployment.yaml index 10c0cfbb68..b8f671d643 100644 --- a/stable/ghost/templates/deployment.yaml +++ b/stable/ghost/templates/deployment.yaml @@ -15,6 +15,14 @@ spec: labels: app: {{ template "fullname" . }} spec: + initContainers: + - name: volume-permissions + image: "{{ .Values.volumePermissions.image.name }}:{{ .Values.volumePermissions.image.tag }}" + imagePullPolicy: {{ default "" .Values.volumePermissions.image.pullPolicy | quote }} + command: ['sh', '-c', 'chmod -R g+rwX /bitnami'] + volumeMounts: + - mountPath: /bitnami + name: ghost-data containers: - name: {{ template "fullname" . }} image: "{{ .Values.image }}" diff --git a/stable/ghost/values.yaml b/stable/ghost/values.yaml index 95217633dc..52c70d3f7e 100644 --- a/stable/ghost/values.yaml +++ b/stable/ghost/values.yaml @@ -1,7 +1,15 @@ ## Bitnami Ghost image version ## ref: https://hub.docker.com/r/bitnami/ghost/tags/ ## -image: bitnami/ghost:0.11.10-r1 +image: bitnami/ghost:0.11.10-r2 + +## Busybox image used to configure volume permissions +## +volumePermissions: + image: + name: busybox + tag: 1.27.1 +# pullPolicy: ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'