Connect to a Managed Kubernetes cluster
To get started with the cluster, configure kubectl.
We recommend performing all actions with cluster nodes, load balancers, and volumes only via kubectl.
After updating certificates for system components, reconnect to the cluster.
Linux
Windows
-
Install the Kubernetes command-line client kubectl.
-
In the control panel, in the top menu, click Products and select Managed Kubernetes.
-
In the Clusters section, open the cluster page → tab Settings.
-
If you are using a private kube API, check access to it. The IP address is specified in the Kube API field.
-
Click Download kubeconfig. Downloading the kubeconfig file is unavailable if the cluster status is
PENDING_CREATE,PENDING_ROTATE_CERTS,PENDING_DELETEorERROR. -
Export the path to the kubeconfig file to the
KUBECONFIGenvironment variable:export KUBECONFIG=<path>Specify
<path>— the path to the kubeconfig filecluster_name.yaml, where<cluster_name>is the cluster name. -
Check if the configuration is correct — connect to the cluster via kubectl:
kubectl get nodesNodes must be in the
Readystatus.