commands.sh

kubectl exec

all

Execute a command in a container.

More info →

Options (1)

boolean

Open Bash in a pod, using the first container by default

Example: kubectl exec {{pod_name}} {{[-it|--stdin --tty]}} -- bash

Examples (1)

Open Bash in a pod, using the first container by default

kubectl exec pod_name [-it|--stdin --tty] -- bash
made by @shridhargupta | data from tldr-pages