snippetbashTip
kubectl exec — Execute a command in a container. More information: <https://kubernetes.io/docs/reference/kubectl/ge
Viewed 0 times
commandexecutekubectl execclimoreinformationcontainer
Problem
How to use the
kubectl exec command: Execute a command in a container. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_exec/>.Solution
kubectl exec — Execute a command in a container. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_exec/>.Open Bash in a pod, using the first container by default:
kubectl exec {{pod_name}} {{[-it|--stdin --tty]}} -- bashCode Snippets
Open Bash in a pod, using the first container by default
kubectl exec {{pod_name}} {{[-it|--stdin --tty]}} -- bashContext
tldr-pages: common/kubectl exec
Revisions (0)
No revisions yet.