Vinodkumar Chenna:
kubectl exec -it nginx-pod-configmap – /bin/bash -n vnd
Error from server (NotFound): pods “nginx-pod-configmap” not found READY STATUS RESTARTS AGE
Tej_Singh_Rana:
Hello, @Vinodkumar Chenna
$ kubectl exec -it nginx-pod-configmap -n vnd -- /bin/bash
Tej_Singh_Rana:
Whatever you will write after double hyphen (–), It runs inside the pod’s container.
Vinodkumar Chenna:
Yes got it tej singh
Vinodkumar Chenna:
thanks
Eray Ates:
Also most of command use it for example mkdir -- -h
creates -h folder. And golang std lib flag support it.