kubectl -n kube-system create configmap cloudflare-config \
--from-literal=zone-id='[ZONE_ID]' \
--from-literal=dns-list='www.example.com example.com' \
--from-literal=ip-check-interval-in-sec='30'
Add your access token as a secret:
kubectl -n kube-system create secret generic cloudflare-credentials \
--from-literal=access-token='[ACCESS_TOKEN]'
To deploy this as a long running system pod on kubernetes:
kubectl apply -f https://raw.githubusercontent.com/edenreich/cloudflare-dns-updater/master/kubernetes/manifests/linux-arm/cloudflare-dns-updater.yaml
# or
# kubectl apply -f https://raw.githubusercontent.com/edenreich/cloudflare-dns-updater/master/kubernetes/manifests/linux/cloudflare-dns-updater.yaml
kubectl delete -f https://raw.githubusercontent.com/edenreich/cloudflare-dns-updater/master/kubernetes/manifests/linux-arm/cloudflare-dns-updater.yaml
# or
# kubectl delete -f https://raw.githubusercontent.com/edenreich/cloudflare-dns-updater/master/kubernetes/manifests/linux/cloudflare-dns-updater.yaml
kubectl -n kube-system delete configmaps/cloudflare-config
kubectl -n kube-system delete secrets/cloudflare-credentials