diff --git a/infrastructure/external-dns/cronjob.yaml b/infrastructure/external-dns/cronjob.yaml index ad0546d..a92da71 100644 --- a/infrastructure/external-dns/cronjob.yaml +++ b/infrastructure/external-dns/cronjob.yaml @@ -9,55 +9,15 @@ spec: jobTemplate: spec: backoffLimit: 0 - template: spec: - initContainers: - - name: git - image: git - command: ["git"] - args: - - clone - - https://git.kluster.moll.re/remoll/dns.git - - /etc/octodns - volumeMounts: - - name: octodns-config - mountPath: /etc/octodns containers: - - name: octodns - image: octodns + - name: dns + image: dns env: - # - name: CLOUDFLARE_ACCOUNT_ID - # valueFrom: - # secretKeyRef: - # name: cloudflare-api - # key: CLOUDFLARE_ACCOUNT_ID - name: CLOUDFLARE_TOKEN valueFrom: secretKeyRef: name: cloudflare-api key: CLOUDFLARE_TOKEN - # - name: CLOUDFLARE_EMAIL - # valueFrom: - # secretKeyRef: - # name: cloudflare-api - # key: CLOUDFLARE_EMAIL - - command: ["/bin/sh", "-c"] - args: - - >- - cd /etc/octodns - && - pip install -r ./requirements.txt - && - octodns-sync --config-file ./config.yaml --doit - && - echo "done..." - volumeMounts: - - name: octodns-config - mountPath: /etc/octodns - - volumes: - - name: octodns-config - emptyDir: {} restartPolicy: Never diff --git a/infrastructure/external-dns/kustomization.yaml b/infrastructure/external-dns/kustomization.yaml index 29111b8..95449b1 100644 --- a/infrastructure/external-dns/kustomization.yaml +++ b/infrastructure/external-dns/kustomization.yaml @@ -9,10 +9,6 @@ resources: - cronjob.yaml images: - - name: octodns - newName: octodns/octodns # has all plugins - newTag: "2025.08" - - - name: git - newName: alpine/git - newTag: "v2.49.1" \ No newline at end of file + - name: dns + newName: git.kluster.moll.re/remoll/dns + newTag: v0.0.1-31