apiVersion: batch/v1
kind: CronJob
metadata:
  name: kubernetes-cloudflare-ddns
  labels:
    app.kubernetes.io/controller: main
    app.kubernetes.io/instance: kubernetes-cloudflare-ddns
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: kubernetes-cloudflare-ddns
    helm.sh/chart: kubernetes-cloudflare-ddns-5.0.1
  namespace: kubernetes-cloudflare-ddns
spec:
  suspend: false
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 30
  timeZone: America/Chicago
  schedule: "30 4 * * *"
  successfulJobsHistoryLimit: 1
  failedJobsHistoryLimit: 1
  jobTemplate:
    spec:
      parallelism: 1
      backoffLimit: 3
      template:
        metadata:
          labels:
            app.kubernetes.io/controller: main
            app.kubernetes.io/instance: kubernetes-cloudflare-ddns
            app.kubernetes.io/name: kubernetes-cloudflare-ddns
        spec:
          enableServiceLinks: false
          serviceAccountName: kubernetes-cloudflare-ddns
          automountServiceAccountToken: false
          hostIPC: false
          hostNetwork: false
          hostPID: false
          dnsPolicy: ClusterFirst
          restartPolicy: Never
          containers:
            - envFrom:
                - secretRef:
                    name: kubernetes-cloudflare-ddns-secret
              image: kubitodev/kubernetes-cloudflare-ddns:2.0.0@sha256:80979b046e32ecccedfa6c00804676d070ef87c7f77a65e4afa4e91ffdeb7309
              name: main
              resources:
                requests:
                  cpu: 10m
                  memory: 32Mi
