Aneek Bera:
why did I get this:
root@controlplane:~/CKA# kubectl run test-nslookup --image=busybox:1.28 --rm -it --restart=Never -- nslookup 10.50.192.4.default.pod > /root/CKA/nginx.pod
pod default/test-nslookup terminated (Error)
Aneek Bera:
why did I get this:
root@controlplane:~/CKA# kubectl run test-nslookup --image=busybox:1.28 --rm -it --restart=Never -- nslookup 10.50.192.4.default.pod > /root/CKA/nginx.pod
pod default/test-nslookup terminated (Error)
Miguel Gonzalez:
seems like it’s more an issue from the nslookup command… and it’s wrong to use is 10.50.192.4
it should be 10-50-192-4
Miguel Gonzalez:
In general a pod has the following DNS resolution:
pod-ip-address.my-namespace.pod.cluster-domain.example.
Miguel Gonzalez:
I have the question why did you use --rm
?