24 lines
550 B
YAML
24 lines
550 B
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: octodns-cronjob
|
|
spec:
|
|
schedule: "0 */6 * * *"
|
|
successfulJobsHistoryLimit: 1
|
|
failedJobsHistoryLimit: 1
|
|
jobTemplate:
|
|
spec:
|
|
backoffLimit: 0
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: dns
|
|
image: dns
|
|
env:
|
|
- name: CLOUDFLARE_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: cloudflare-api
|
|
key: CLOUDFLARE_TOKEN
|
|
restartPolicy: Never
|