Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.22 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.22 KB

Client requests for CoreDNS service

This example demonstrates how an external client configures DNS from the connected endpoint. Note: NSE provides DNS by itself. Also, NSE could provide configs for any other external DNS servers(that are not located as sidecar with NSE).

Requires

Make sure that you have completed steps from features

Run

Deploy alpine and nse

kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=4381f9e51f314518878331b4c98da47596703766

Wait for applications ready:

kubectl wait --for=condition=ready --timeout=5m pod dnsutils -n ns-dns
kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-dns

Ping from dnsutils to NSE by domain name:

kubectl exec pods/dnsutils -c dnsutils -n ns-dns -- nslookup -norec -nodef my.coredns.service
kubectl exec pods/dnsutils -c dnsutils -n ns-dns -- ping -c 4 my.coredns.service

Validate that default DNS server is working:

kubectl exec pods/dnsutils -c dnsutils -n ns-dns -- dig kubernetes.default A kubernetes.default AAAA | grep "kubernetes.default.svc.cluster.local"

Cleanup

Delete ns:

kubectl delete ns ns-dns