Files
chart/charts/nextcloud/2.0.21/templates/_cron.tpl
2025-01-19 07:19:28 +00:00

38 lines
923 B
Smarty

{{- define "nextcloud.cron" -}}
workload:
nextcloud-cron:
enabled: true
type: CronJob
schedule: {{ .Values.ncConfig.cron.schedule | quote }}
concurrencyPolicy: Forbid
podSpec:
restartPolicy: Never
hostNetwork: false
securityContext:
fsGroup: 33
containers:
nextcloud-cron:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: 33
runAsGroup: 0
runAsNonRoot: false
readOnlyRootFilesystem: false
envFrom:
- secretRef:
name: nextcloud-creds
command:
- php
- -f
- /var/www/html/cron.php
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
{{- end -}}