kubectl attach <Running Pods>

Attach to a process that is already running inside an existing container

Arguments

NameDescription
Running Pods

Options

NameDescription
-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