Anyone know what could be the reason for this? Related to Lab2 - Q7 nslookup co . . .

Krishan:
Anyone know what could be the reason for this?
Related to Lab2 - Q7

nslookup command works well, if I go into the container and executed it.

controlplane $ kubectl run test-pod --image=busybox:1.28 --rm -it -- nslookup nginx-resolver-service
pod "test-pod" deleted
error: timed out waiting for the condition

vinodhkumar chandrasekaran:
@Krishan: I have the same issue as well but no luck with different versions of busybox too. Would be interested to see what the solution is

vinodhkumar chandrasekaran:
@Krishan: It work after adding --restart=Never in kubectl run

Mohamed Ayman:
You have to add --restart=Never with busybox

Krishan:
Great!. Thanks a lot for the support. I’ll try it out