kubectl exec <Running Pods> <COMMAND>
Execute a command in a container
Arguments
Name | Description |
---|
Running Pods | |
COMMAND | |
Options
Name | Description |
---|
-f, --filename <File> | Filename, directory, or URL to files identifying the resource |
-c, --container <Container> | Container name. If omitted, the first container in the pod will be chosen |
--pod-running-timeout <arg> | The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running |
-i, --stdin | Pass stdin to the container |
-t, --tty | Stdin is a TTY |