Hi All, quick question on CKA Mock Exam 2, question 7 about dns lookup with a bu . . .

Andrei Zimin:
Hi All, quick question on CKA Mock Exam 2, question 7 about dns lookup with a busybox pod. The answers say that the command is

kubectl run test-nslookup --image=busybox:1.28 --rm -it --restart=Never -- nslookup nginx-resolver-service

Do we need to memorize the “–rm -it --restart=Never – nslookup” part of the syntax? Is there a reference in the Kubernetes docs on how to do it? Tried searching - didn’t find… Thanks!

Tej_Singh_Rana:
Hello, @Andrei Zimin
kubectl run --help will work.
You can find similar commands on this page.
https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/