Run ddns as a CronJob instead of a StatefulSet

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-14 23:48:41 +02:00
co-authored by Claude Opus 5
parent f53e8f5b00
commit 79e2d1e6de
3 changed files with 30 additions and 45 deletions
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: azure-ddns
namespace: azure-ddns
spec:
schedule: "*/30 * * * *"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
startingDeadlineSeconds: 300
jobTemplate:
spec:
backoffLimit: 3
template:
spec:
restartPolicy: OnFailure
containers:
- name: azure-ddns
image: gitea.jsme.be/jeffrey/azure-ddns-python:1.2
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
envFrom:
- secretRef:
name: azure-ddns-app-secrets