kubectl events -A
# Check if ping is working
kubectl run -i --tty --rm pingtest --image=busybox --restart=Never -- /bin/sh -c "ping ipinfo.no"
# Check the service
kubectl run -i --tty --rm pingtest --image=busybox --restart=Never -- /bin/sh -c "ping http://pod1.myns:3333"
a Docker + Kubernetes network trouble-shooting swiss-army container
Throw away container for debugging
kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot -- /bin/bash
On host network
kubectl run tmp-shell --rm -i --tty --overrides='{"spec": {"hostNetwork": true}}' --image nicolaka/netshoot -- /bin/bash