Hello all,
i’m actually preparing the cka and i have a little issue with listing pod name and pass pod name to command.
i wrote the below command:
export POD_NAME=$(kubectl get pods -n dns-ns -o jsonpath='{.items[*].metadata.name}')
to get the list of pod and pass it to the below command:
k exec -i -t $POD_NAME -- nslookup kubernetes.default
the command result with below message:
Error from server (NotFound): pods "dns-deploy-cka-fd5f8fbf5-9swpn" not found```
does anyone can help me on this please ?
Thank you,