Information about existing Managed Service for Kubernetes clusters
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
To get a list of Kubernetes clusters, go to the folder page and select Managed Service for Kubernetes.
Run the command:
ncp managed-kubernetes cluster list
Command 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/ |
+----------------------+------------------+---------------------+---------+---------+-------------------------+-------------------+
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
- Go to the folder page and select Managed Service for Kubernetes.
- Click on the name of the Kubernetes cluster.
Get detailed information about the Kubernetes cluster:
ncp managed-kubernetes cluster get test-k8s-cluster
Command 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