Update ghost chart to work with non-root ghost container (#1717)

* Update ghost chart to work with non-root ghost container

* Bump chart version and move busybox image and tag to values.yaml

* Change volumePermissions init-container structure in values.yaml
This commit is contained in:
tompizmor
2017-08-13 20:01:31 +02:00
committed by Reinhard Nägele
parent 0049b8852b
commit bcd3b83cd2
2 changed files with 17 additions and 1 deletions
+8
View File
@@ -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 }}"
+9 -1
View File
@@ -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'