Files
home-cluster/cluster/apps/networking/cloudflare-ddns/cron-job.yaml
T
renovate[bot] 3db6282c59 chore(deps): update ghcr.io/onedr0p/kubernetes-kubectl:1.25.4 docker digest to 0d416e4 (#533)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-26 21:00:40 -05:00

43 lines
1.2 KiB
YAML

---
apiVersion: batch/v1
kind: CronJob
metadata:
name: &app cloudflare-ddns
namespace: default
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.25.4@sha256:0d416e4095a476b900e93c8c818fbb17eda876709e3a00a4a3c7a725e95816ca
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