Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Kubernetes
  • Comparing with other Yandex Cloud services
  • Getting started
    • All guides
    • Connecting to a node over SSH
    • Connecting to a node via OS Login
    • Updating Kubernetes
    • Configuring masquerading in clusters with multiple ranges of pod IP addresses
    • Configuring autoscaling
    • Activating a Kubernetes Terraform provider
    • Installing applications from Yandex Cloud Marketplace using Terraform
    • Working with private Docker image registries
      • Connecting to the terminal of a running container
      • Managing pod allocation to nodes
      • Managing workloads
      • Managing storages
      • Managing Service and Ingress resources
      • Managing ConfigMap and Secret resources
      • Managing Kubernetes service accounts
      • Managing namespaces
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Working with Kubernetes objects from the management console
  3. Connecting to the terminal of a running container

Connecting to the terminal of a running container

Written by
Yandex Cloud
Updated at September 4, 2026
View in Markdown

You can use the Managed Service for Kubernetes management console to connect to a container running in a pod and run commands without restarting or stopping the container. This approach is equivalent to kubectl exec -it <pod_name> -- <shell_name> and enables you to inspect logs during debugging, restart services, and modify configurations.

To connect to the terminal:

Management console
  1. In the management console, select the folder.

  2. Navigate to Managed Service for Kubernetes.

  3. Select the Managed Service for Kubernetes cluster and open the Workload tab.

  4. In the pod row, click and select Connect.

    The terminal will open at the bottom of the screen.

  5. Note that for multi-container pods, the terminal will open for the first container specified under spec.containers in the pod manifest.

    To switch to a shell of another container, select it from the drop-down menu in the top-left corner of the terminal window.

The container’s default command shell will open.

Warning

The following error occurs when attempting to access the terminal of containers deployed from minimal or distroless images that do not have a shell:

Connection failed. Terminal shell is not found

In such cases, we recommend you use ephemeral containers for connecting.

Useful linksUseful links

Pod

Was the article helpful?

Previous
Deleting a node group
Next
Managing pod allocation to nodes
© 2026 Direct Cursus Technology L.L.C.