Information about existing Managed Service for Kubernetes clusters
Written by
Updated at October 3, 2024
To find out the Kubernetes cluster ID
or NAME
, get a list of Kubernetes clusters in 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 this command:
yc managed-kubernetes cluster list
Result:
+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+
| ID | NAME | CREATED AT | HEALTH | STATUS | EXTERNAL ENDPOINT | INTERNAL ENDPOINT |
+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+
| cata9ertn6tc******** | test-k8s-cluster | 2019-04-12 10:00:27 | HEALTHY | RUNNING | https://84.201.150.176/ | https://10.0.0.3/ |
+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+
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
- Go to the folder page and select Managed Service for Kubernetes.
- Click the name of the Kubernetes cluster.
Get detailed information about the Kubernetes cluster:
yc managed-kubernetes cluster get test-k8s-cluster
Result:
id: cata9ertn6tc********
folder_id: b1g88tflru0e********
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