Open Shell in Kubernetes

Run an interactive shell for the container in the selected pod.

Select the pod you want from the Kubernetes view in the Services tool window, then click on the Run Shell button. A new tab will open and a terminal will be attached to the running pod.

By default, the IDE runs /bin/bash as a shell. To run a different one, click Show Settings or open Settings/Preferences | Build, Execution, Deployment | Kubernetes and specify the shell that your pods use.

Related Resources

Open Console in Kubernetes
Open Console in Kubernetes
Attach to the console of a process running inside a container of the selected pod.
Convert Kubernetes Resources Definition Formats
Convert Kubernetes Resources Definition Formats
Quickly switch between List and Multidocument YAML for Kubernetes resource definitions.
Delete Kubernetes Resources
Delete Kubernetes Resources
Teardown resources faster as and when you need to.