-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
26 lines (26 loc) · 910 Bytes
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
jobs:
## Just comment out what jobs you don't want to be deployed.
- name: nextcloud-maintenance-mode-on
namespace: cron-jobs
timezone: "America/New_York"
schedule: "0 2 * * *"
spec:
serviceAccountName: cron-runner
restartPolicy: Never
containers:
- name: kubectl-container
image: bitnami/kubectl
command: ["/bin/bash"]
args: ["-c", "kubectl exec deployment/nextcloud -n nextcloud -- su -s /bin/bash www-data -c 'php occ maintenance:mode --on'"]
- name: nextcloud-maintenance-mode-off
namespace: cron-jobs
timezone: "America/New_York"
schedule: "0 6 * * *"
spec:
serviceAccountName: cron-runner
restartPolicy: Never
containers:
- name: kubectl-container
image: bitnami/kubectl
command: ["/bin/bash"]
args: ["-c", "kubectl exec deployment/nextcloud -n nextcloud -- su -s /bin/bash www-data -c 'php occ maintenance:mode --off'"]