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.

Note: You must have the Kubernetes plugin provided by JetBrains installed for this action to work.


Related Resources

Configure Custom Namespaces Manually
Configure Custom Namespaces Manually
Use all the features you need even if the plugin cannot process the namespaces automatically
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.