Connect to the cluster
To get started with the cluster, you need to configure kubectl.
We recommend that you perform all actions with nodes, balancers and disks in the cluster only through kubectl.
After you update the certificates for system components, you must reconnect to the cluster.
Linux
Windows
-
Install the Kubernetes kubectl console client.
-
In the dashboard, on the top menu, click Products and select Managed Kubernetes.
-
Open the cluster page → Settings tab.
-
If you use private kube API, check access to it. IP address is specified in the Kube API field.
-
Click Download kubeconfig. The kubeconfig file download 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
KUBECONFIG
environment variable:export KUBECONFIG=<path>
Specify
<path>
is the path to the kubeconfig filename_cluster.yaml
. -
Check if the configuration is correct — access the cluster via kubectl:
kubectl get nodes
Nodes must be in
Ready
status.
-
Install the Kubernetes kubectl console client.
-
In the dashboard, on the top menu, click Products and select Managed Kubernetes.
-
Open the cluster page → Settings tab.
-
If you use private kube API, check access to it. IP address is specified in the Kube API field.
-
Click Download kubeconfig. The kubeconfig file download is not available if the cluster status is
PENDING_CREATE
,PENDING_ROTATE_CERTS
,PENDING_DELETE
, orERROR
. -
Run PowerShell as an administrator.
-
Export the path to the kubeconfig file to the
KUBECONFIG
environment variable:$env:KUBECONFIG = <path>
Specify
<path>
-path to the kubeconfig filename_cluster.yaml
. -
Check if the configuration is correct — access the cluster via kubectl:
kubectl get nodes
Nodes must be in
Ready
status.