fixed owncloud chart permission
This commit is contained in:
@ -20,6 +20,20 @@ spec:
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
{{- if .Values.initContainers.permissions.enabled }}
|
||||
initContainers:
|
||||
- name: permissions-init
|
||||
image: "{{ .Values.initContainers.permissions.image }}:{{ .Values.initContainers.permissions.tag }}"
|
||||
command: {{ .Values.initContainers.permissions.command | toYaml | nindent 12 }}
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /var/www/owncloud/config
|
||||
- name: files
|
||||
mountPath: /var/www/owncloud/data
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
|
@ -15,6 +15,18 @@ podSecurityContext:
|
||||
runAsGroup: 33
|
||||
fsGroup: 33
|
||||
|
||||
# Init container for setting up permissions
|
||||
initContainers:
|
||||
permissions:
|
||||
enabled: true
|
||||
image: busybox
|
||||
tag: latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
chown -R 33:33 /var/www/owncloud/config /var/www/owncloud/data
|
||||
|
||||
# Database configuration
|
||||
database:
|
||||
type: "pgsql" # can be pgsql or mysql
|
||||
@ -58,7 +70,7 @@ persistence:
|
||||
storageClass: ""
|
||||
accessMode: ReadWriteOnce
|
||||
size: 5Gi
|
||||
mountPath: /mnt/data
|
||||
mountPath: /var/www/owncloud/config
|
||||
# Optional: Use existing PVC
|
||||
existingClaim: ""
|
||||
files:
|
||||
@ -66,7 +78,7 @@ persistence:
|
||||
storageClass: ""
|
||||
accessMode: ReadWriteOnce
|
||||
size: 100Gi
|
||||
mountPath: /var/www/html/data
|
||||
mountPath: /var/www/owncloud/data
|
||||
# Optional: Use existing PVC
|
||||
existingClaim: ""
|
||||
|
||||
|
Reference in New Issue
Block a user