Fabien Violas:
Hello, I try to understand the command “kubectl run test-nslookup --image=busybox:1.28 --rm -it --restart=Never – nslookup nginx-resolver-service” - what --rm and -it are doing ? - why blank between – and nslookup - I m not able to find documentation / post explaining
Raamkanna Saranathan:
he explains it in 32:27 of the mock exam 2 solution video.
you can also see the explanations for the kubectl run
command in the reference guide here:
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run
rm - delete resources after container terminates
it - interactive terminal
– <space> denotes that you run the command specified after the space, inside the container
Fabien Violas:
thank you