switch to dedicated container for dns

This commit is contained in:
2025-10-14 22:23:47 +02:00
parent 9e580c2a64
commit 8cbe490243
2 changed files with 5 additions and 49 deletions

View File

@@ -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

View File

@@ -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"
- name: dns
newName: git.kluster.moll.re/remoll/dns
newTag: v0.0.1-31