diff options
author | Patrick Spek <p.spek@tyil.nl> | 2024-06-26 11:46:04 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2024-06-26 11:47:03 +0200 |
commit | 9d33b82d796dce1805a418d2951ef532b51990f6 (patch) | |
tree | 86f9044d95308cb7645c3dbf7e5b64c027e50693 /data.d/k3s-master/manifests.d/personal-services/nextcloud/cron.yaml | |
parent | 0970a3df19b02fdec6ed7cc0ac92504d84a3655a (diff) |
Deploy all services into new k3s cluster
Diffstat (limited to 'data.d/k3s-master/manifests.d/personal-services/nextcloud/cron.yaml')
-rw-r--r-- | data.d/k3s-master/manifests.d/personal-services/nextcloud/cron.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/data.d/k3s-master/manifests.d/personal-services/nextcloud/cron.yaml b/data.d/k3s-master/manifests.d/personal-services/nextcloud/cron.yaml new file mode 100644 index 0000000..79a1f15 --- /dev/null +++ b/data.d/k3s-master/manifests.d/personal-services/nextcloud/cron.yaml @@ -0,0 +1,36 @@ +--- +apiVersion: batch/v1 +kind: CronJob +metadata: + name: nextcloud + namespace: personal-services +spec: + schedule: "*/5 * * * *" + successfulJobsHistoryLimit: 0 + failedJobsHistoryLimit: 2 + jobTemplate: + spec: + template: + spec: + securityContext: + runAsUser: 33 + runAsGroup: 33 + nodeName: "mieshu.tyil.net" + containers: + - name: nextcloud + image: nextcloud:27 + command: + - php + args: + - -f + - /var/www/html/cron.php + volumeMounts: + - mountPath: /var/www/html + name: data + restartPolicy: OnFailure + volumes: + - name: data + hostPath: + path: /mnt/pool/nextcloud + type: Directory +... |