Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
Yandex Managed Service for Kubernetes
  • Comparison with other Yandex Cloud services
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Connecting to a node over SSH
    • Updating Kubernetes
    • Configuring autoscaling
    • Connecting to a cluster
      • Connection method overview
      • Configuring security groups
      • Creating a static configuration file
    • Installing applications
      • Basics of working with Cloud Marketplace
      • Installing Jaeger
      • Installing Metrics Provider
    • Network scenarios
      • Granting access to an app running in a Kubernetes cluster
      • Configuring the Calico network policy controller
      • Configuring the Cilium network policy controller
      • Configuring NodeLocal DNS for the Cilium network policy controller
    • Working with persistent volumes
      • Dynamic volume provisioning
      • Static volume provisioning
      • Managing storage classes
      • Expanding a pod volume
      • Expanding a StatefulSet controller volume
      • Mounting a volume in Block mode
      • Integration with Object Storage
    • Managing a Kubernetes cluster
      • Getting information about a Kubernetes cluster
      • Creating a Kubernetes cluster
      • Editing a Kubernetes cluster
      • Creating a namespace in a Kubernetes cluster
      • Deleting a Kubernetes cluster
    • Managing a node group
      • Information about existing node groups
      • Creating a node group
      • Connecting to a node over SSH
      • Configuring autoscaling
      • Changing a node group
      • Managing Kubernetes cluster node labels
      • Deleting a node group
    • Connecting external nodes to the cluster
  • Practical guidelines
    • All tutorials
    • Integration with Container Registry
    • Running workloads with GPUs
    • Installing the NGINX Ingress controller with Let's Encrypt®
    • Configuring the Application Load Balancer Ingress controller
    • Backups to Object Storage
    • Horizontal application scaling in a cluster
    • Vertical application scaling in a cluster
    • Working with snapshots
    • Integrating into a corporate DNS zone
    • Automatic DNS scaling by cluster size
    • Setting up local DNS caching
    • Configuring Fluent Bit for Cloud Logging
    • Syncing with Yandex Lockbox secrets
    • Using Cloud Marketplace products
      • Using Jaeger to trace requests in Managed Service for YDB
  • Concepts
    • Relationships between service resources
    • Release channels and updates
    • Encrypting secrets
    • Using Kubernetes API objects
      • Volumes
      • Service
    • Node groups
      • Cluster autoscaler
      • Evicting pods from nodes
      • Dynamic resource allocation for a node
      • Node groups with GPUs
    • Network in Managed Service for Kubernetes
    • External cluster nodes
    • Network settings and cluster policies
    • Automatic scaling
    • Quotas and limits
    • Recommendations for using Managed Service for Kubernetes
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • ClusterService
      • NodeGroupService
      • VersionService
      • OperationService
    • REST
      • Overview
      • Cluster
        • Overview
        • create
        • delete
        • get
        • list
        • listNodeGroups
        • listNodes
        • listOperations
        • start
        • stop
        • update
      • NodeGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listNodes
        • listOperations
        • update
      • Version
        • Overview
        • list
  • Questions and answers
    • General questions
    • Data storage
    • Configuring and updating
    • Automatic scaling
    • Resources
    • Logs
    • All questions on one page
  1. Step-by-step instructions
  2. Managing a Kubernetes cluster
  3. Getting information about a Kubernetes cluster

Getting information about existing clusters Kubernetes

Written by
Yandex Cloud
  • Getting a list of Kubernetes clusters in a folder
  • Getting detailed information about a Kubernetes cluster

To find out the Kubernetes cluster ID or NAME, get a list of Kubernetes clusters from the folder or detailed information about the Kubernetes cluster.

Getting a list of Kubernetes clusters in a folder

Get a list of Kubernetes clusters in the default folder.

Management console
CLI
API

To get a list of Kubernetes clusters go to the folder page and select Managed Service for Kubernetes.

Run the command:

yc managed-kubernetes cluster list

Result:

+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+
|          ID          |       NAME       |     CREATED AT      | HEALTH  | STATUS  |    EXTERNAL ENDPOINT    | INTERNAL ENDPOINT |
+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+
| cata9ertn6tcr09bh9rm | test-k8s-cluster | 2019-04-12 10:00:27 | HEALTHY | RUNNING | https://84.201.150.176/ | https://10.0.0.3/ |
+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+

To get the list of Kubernetes clusters in the default folder, use the list method for the Cluster resource.

Getting detailed information about a Kubernetes cluster

To access a Kubernetes cluster, use the ID or NAME parameters from the previous section.

Management console
CLI
API
  1. Go to the folder page and select Managed Service for Kubernetes.
  2. Click on the name of your Kubernetes cluster.

Get detailed information about the Kubernetes cluster:

yc managed-kubernetes cluster get test-k8s-cluster

Result:

id: cata9ertn6tcr09bh9rm
folder_id: b1g88tflru0ek1omtsu0
created_at: "2019-04-12T10:00:27Z"
...
ip_allocation_policy:
  cluster_ipv4_cidr_block: 10.13.0.0/16
  service_ipv4_cidr_block: 10.14.0.0/16

You can get detailed information about the Kubernetes cluster using the get method for the Cluster resource.

Was the article helpful?

Language / Region
© 2022 Yandex.Cloud LLC
In this article:
  • Getting a list of Kubernetes clusters in a folder
  • Getting detailed information about a Kubernetes cluster