/dns_updater

Small tool to handle my home IP changes by changing poiuytre.nl A record on GoDaddy

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

DNS Updater

Small tool to handle my home IP changes by updating poiuytre.nl A record on GoDaddy

Testing

$ go test ./...

Coverage report

$ go test -coverprofile=cover.out  ./... && go tool cover -html=cover.out

How to run it

Requisite

To run the application, you first need to decrypt secrets.yaml file. Or write your own and replace the one you've found here...

I'm using the following for encyption:

Decrypt:

$ sops -d --output-type yaml secrets.enc.yaml > secrets.yaml

Encrypt:

$ sops -e --input-type yaml --age ageEXAMPLE secrets.yaml > secrets.enc.yaml 

Deploying to your k8s cluster

$ kubectl apply -f secrets.yaml && kubectl apply -f config.yaml 
$ kubectl apply -f cronjob.yaml