Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.09 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.09 KB

NextDNS CLI for Kubernetes

NOTE: This is a WIP. The docker-compose example was converted to Kubernetes using kompose and then messed around with.

  1. Obtain your NextDNS Profile ID(s) from the NextDNS web interface

  2. Create a k8s secret with your NextDNS Profile configuration

    kubectl create secret generic nextdns-profile --from-literal=profile1=1a2s3d4f --from-literal=profile2=a1s2d3f4
  3. 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>
  4. 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>