kubectl exec <Running Pods> <COMMAND>

Execute a command in a container

Arguments

NameDescription
Running Pods
COMMAND

Options

NameDescription
-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, --stdinPass stdin to the container
-t, --ttyStdin is a TTY