I’m stuck with Mock Exam question 7. Create an Nginx pod called Nginx-resolver using image Nginx, expose it internally with a service called nginx-resolver-service. Test that you can look up the service and pod names from within the cluster. Use the image: busybox:1.28 for DNS lookup.)
I can resolve service and pod when I do nslookup from within the pod but cannot redirect output to the file. Can you help me to figure this out?
controlplane $ k run test-resolver --image=busybox:1.28 --rm -it -- nslookup nginx-resolver-service.default.svc.cluster.local
pod "test-resolver" deleted
error: timed out waiting for the condition