Skip to content

Instantly share code, notes, and snippets.

@dfang
Last active September 27, 2019 10:36
Show Gist options
  • Save dfang/ff45c0df555903085158cccb7a7f8054 to your computer and use it in GitHub Desktop.
Save dfang/ff45c0df555903085158cccb7a7f8054 to your computer and use it in GitHub Desktop.
debugging dns, network in k8s
kubectl apply -f https://github.com/infrabricks/kubernetes-standalone/raw/master/examples/alpine.yml
kubectl apply -f https://github.com/infrabricks/kubernetes-standalone/raw/master/examples/busybox.yml

then

kubectl exec -ti alpine -- nslookup/ping/curl/sh

apk add curl

tip from: google kubernetes debug dns

kubectl run -it --rm --restart=Never alpine --image=alpine sh
@dfang
Copy link
Author

dfang commented Sep 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment