Files
home-cluster/cluster/apps/kube-system/cloudflare-ddns/cron-job.yaml
T
renovate[bot] 8396182682 chore(deps): update container image ghcr.io/onedr0p/kubernetes-kubectl to v1.26.0 (#550)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-11 17:57:46 -05:00

43 lines
1.2 KiB
YAML

---
apiVersion: batch/v1
kind: CronJob
metadata:
name: &app cloudflare-ddns
namespace: kube-system
spec:
schedule: "@hourly"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 2
jobTemplate:
spec:
ttlSecondsAfterFinished: 3600
template:
spec:
automountServiceAccountToken: false
restartPolicy: OnFailure
containers:
- name: *app
image: ghcr.io/onedr0p/kubernetes-kubectl:1.26.0@sha256:6ee3353da3495bc99d73af29a4495bb95570e31e71579cfce719c4123882723d
envFrom:
- secretRef:
name: *app
command:
- "/bin/bash"
- &scriptPath "/app/cloudflare-ddns.sh"
volumeMounts:
- name: *app
mountPath: *scriptPath
subPath: &scriptName cloudflare-ddns.sh
readOnly: true
volumes:
- name: *app
projected:
defaultMode: 0775
sources:
- configMap:
name: *app
items:
- key: *scriptName
path: *scriptName