|
@@ -37,13 +37,42 @@ spec:
|
|
|
{{- include "common.labels.selectorLabels" $cronjob_values | nindent 12 }}
|
|
|
spec:
|
|
|
restartPolicy: Never
|
|
|
+ securityContext:
|
|
|
+ runAsUser: 33
|
|
|
+ runAsGroup: 0
|
|
|
+ fsGroup: 33
|
|
|
containers:
|
|
|
- name: {{ .Chart.Name }}-cronjob
|
|
|
image: "{{.Values.image.repository }}:{{.Values.image.tag }}"
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
- {{- if .Values.certificate }}
|
|
|
- command: [ "curl" ,"-k" , "https://{{ $hostName }}:{{.Values.service.nodePort}}/cron.php"]
|
|
|
- {{- else }}
|
|
|
- command: [ "curl" , "http://{{ $hostName }}:{{.Values.service.nodePort}}/cron.php"]
|
|
|
- {{- end }}
|
|
|
+ command:
|
|
|
+ - php
|
|
|
+ - -f
|
|
|
+ - /var/www/html/cron.php
|
|
|
+ volumeMounts:
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: /var/www/
|
|
|
+ subPath: "root"
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: /var/www/html
|
|
|
+ subPath: "html"
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: {{ .Values.nextcloud.datadir }}
|
|
|
+ subPath: "data"
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: /var/www/html/config
|
|
|
+ subPath: "config"
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: /var/www/html/custom_apps
|
|
|
+ subPath: "custom_apps"
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: /var/www/tmp
|
|
|
+ subPath: "tmp"
|
|
|
+ - name: nextcloud-data
|
|
|
+ mountPath: /var/www/html/themes
|
|
|
+ subPath: "themes"
|
|
|
+ volumes:
|
|
|
+ {{ if .Values.appVolumeMounts }}
|
|
|
+ {{- include "common.storage.configureAppVolumes" .Values | nindent 12 }}
|
|
|
+ {{ end }}
|
|
|
{{ end }}
|