Skip to content

Simple solution to create a personal DDNS service with your own domain

License

Notifications You must be signed in to change notification settings

bidluo/cloudflare-ddns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare DDNS

A kubernetes cronjob that runs a docker-container every 5 minutes to check & update your external ip.

Execute kubernetes cronjob

# 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

Values for k8s-cronjob.yaml

  • Get the ZONE_ID under dash.cloudflare.com -> Your domain -> Overview -> API -> Zone ID
#example
ZONE_ID                      = 023e105f4ecef8ad9ca31a8372d0c353
#example
RECORD_ID                    = 372e67954025e0ba6aaa6d586b9e0b59
#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

About

Simple solution to create a personal DDNS service with your own domain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 67.6%
  • Dockerfile 32.4%