Main Menu

Search

KUBERNETES (K8S): KUBECTL EXEC Command To Connect To POD via Bash Shell Prompt

Below is KUBECTL EXEC Command To Connect To POD via Bash Shell Prompt

 kubectl exec --stdin --tty <podname> -- /bin/bash

Below is another simple command.

kubectl exec -it <pod> -n <namespace> -- sh


No comments:

Post a Comment