NOTE: This is a WIP. The docker-compose example was converted to Kubernetes using kompose and then messed around with.
-
Obtain your NextDNS Profile ID(s) from the NextDNS web interface
-
Create a k8s secret with your NextDNS Profile configuration
kubectl create secret generic nextdns-profile --from-literal=profile1=1a2s3d4f --from-literal=profile2=a1s2d3f4
-
Deploy the NextDNS docker image from Github Container Registry
kubectl apply -f nextdns.yaml # view and inspect the daemonset (pods expose on each k8s node available externally) kubectl describe daemonset nextdns # view and inspect the pods in deployment kubectl get pods | grep nextdns kubectl describe pods nextdns-<pod-id> kubectl logs -f nextdns-<pod-id>
-
Verify the service is working by querying the service using
nslookup
# using the `EXTERNAL-IP` from any of your node IP network address nslookup twitch.tv <EXTERNAL-IP>