Python script to be ran inside a Kubernetes cluster to grab nodes' IPs and update corresponding DNS records in OVH.
This script expects the following env vars to be set:
OVH_APPLICATION_KEY
,OVH_APPLICATION_SECRET
,OVH_CONSUMER_KEY
:
OVH credentials as per OVH token creation page
DNS_ZONE
,DNS_SUBDOMAIN
:
Zone and subdomain, e.g. DNS_ZONE=example.dom
DNS_SUBDOMAIN=kubernetes
to update DNS records for kubernetes.example.com
python ./ovh_dns_updater.py