Browse Source

Fix permission issue in non-NFS volumes

master
Fábio Kaiser Rauber 4 years ago
parent
commit
ef9b37e836
  1. 12
      charts/portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml

12
charts/portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml

@ -28,6 +28,18 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: {{ .Release.Name }}-chownplone
command:
- "chown"
- "plone:plone"
- "/data"
securityContext:
runAsNonRoot: false
runAsUser: 0
volumeMounts:
- mountPath: /data
name: data
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: {{ .Release.Name }}-rmlock
command:

Loading…
Cancel
Save