Connect to a Managed Kubernetes cluster
To start working with the cluster, you need to configure kubectl.
We recommend performing all actions with cluster nodes, load balancers, and volumes only via kubectl.
After updating the certificates for system components, reconnect to the cluster.
Linux
Windows
-
install the Kubernetes CLI kubectl.
-
In the Control panel, on the top menu, click Products and select Managed Kubernetes.
-
open the cluster page → Settings tab.
-
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 not available if the cluster status is
PENDING_CREATE,PENDING_ROTATE_CERTS,PENDING_DELETE, orERROR. -
Export the path to the kubeconfig file to the
KUBECONFIGenvironment variable:export KUBECONFIG=<path>Specify
<path>as the path to thecluster_name.yamlkubeconfig file, 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.