Ramit Sharma:
Why am I not able to run ‘ip r’ command inside nginx pod scheduled on worker node?:
controlplane $ k exec nginx – /bin/sh -c ‘ip r’
/bin/sh: 1: ip: not found
Ramit Sharma:
Why am I not able to run ‘ip r’ command inside nginx pod scheduled on worker node?:
controlplane $ k exec nginx – /bin/sh -c ‘ip r’
/bin/sh: 1: ip: not found
Vasu P:
I think ip package needs be installed in that container.
Ramit Sharma:
So if the exam questions is for finding the default gateway of a node, which pod image should I use. Seems like nginx wont work.
Vasu P:
I think we can use
<http://gcr.io/kubernetes-e2e-test-images/dnsutils:1.3|gcr.io/kubernetes-e2e-test-images/dnsutils:1.3>
https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/