mirror of
https://github.com/truenas/charts.git
synced 2026-04-30 21:41:08 +08:00
38 lines
923 B
Smarty
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 -}}
|