switch to dedicated container for dns
This commit is contained in:
@@ -9,55 +9,15 @@ spec:
|
|||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 0
|
backoffLimit: 0
|
||||||
|
|
||||||
template:
|
template:
|
||||||
spec:
|
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:
|
containers:
|
||||||
- name: octodns
|
- name: dns
|
||||||
image: octodns
|
image: dns
|
||||||
env:
|
env:
|
||||||
# - name: CLOUDFLARE_ACCOUNT_ID
|
|
||||||
# valueFrom:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: cloudflare-api
|
|
||||||
# key: CLOUDFLARE_ACCOUNT_ID
|
|
||||||
- name: CLOUDFLARE_TOKEN
|
- name: CLOUDFLARE_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: cloudflare-api
|
name: cloudflare-api
|
||||||
key: CLOUDFLARE_TOKEN
|
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
|
restartPolicy: Never
|
||||||
|
|||||||
@@ -9,10 +9,6 @@ resources:
|
|||||||
- cronjob.yaml
|
- cronjob.yaml
|
||||||
|
|
||||||
images:
|
images:
|
||||||
- name: octodns
|
- name: dns
|
||||||
newName: octodns/octodns # has all plugins
|
newName: git.kluster.moll.re/remoll/dns
|
||||||
newTag: "2025.08"
|
newTag: v0.0.1-31
|
||||||
|
|
||||||
- name: git
|
|
||||||
newName: alpine/git
|
|
||||||
newTag: "v2.49.1"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user