A kubernetes cronjob that runs a docker-container every 5 minutes to check & update your external ip.
# 1. Clone the repo
git clone https://github.com/mirioeggmann/cloudflare-ddns.git
# 2. Navigate into it
cd cloudflare-ddns
# 3. Edit the k8s-cronjob.yaml according to "Values for k8s-cronjob.yaml"
# 4. Execute the cronjob
kubectl apply -f k8s-cronjob.yaml
- Get the ZONE_ID under dash.cloudflare.com -> Your domain -> Overview -> API -> Zone ID
#example
ZONE_ID = 023e105f4ecef8ad9ca31a8372d0c353
- Get the RECORD_ID: https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records
#example
RECORD_ID = 372e67954025e0ba6aaa6d586b9e0b59
- Get your AUTH_KEY (Create a key with "DNS Edit" permissions): https://support.cloudflare.com/hc/en-us/articles/200167836-Where-do-I-find-my-Cloudflare-API-key-
#example
AUTH_KEY = c2547eb745049flc9320b638f5e225cf483cc5cfdda41
- Specify your cloudflare email
#example
AUTH_EMAIL = [email protected]
- Specify your domain
#example
NAME = example.com
For more Cloudflare API informations read the Cloudflare API documentation v4