Connect to the cluster
To start working with the cluster, you need to configure kubectl.
We recommend that all actions with nodes, balancers and disks in the cluster be done only through kubectl.
After certificate updates for system components you must reconnect to the cluster.
Linux
Windows
-
Install the Kubernetes kubectl console client by official instruction.
-
В control panels go to Cloud platform → Kubernetes.
-
Open the cluster page → tab Settings.
-
If you use private kube API, check access to it. IP address is specified in the field Kube API.
-
Click Download kubeconfig. Downloading the kubeconfig file is not available if the cluster status is
PENDING_CREATE
,PENDING_ROTATE_CERTS
,PENDING_DELETE
orERROR
. -
Export to an environment variable
KUBECONFIG
path to the kubeconfig file:export KUBECONFIG=<path>
Specify
<path>
— path to the kubeconfig fileимя_кластера.yaml
. -
Check if the configuration is correct — access the cluster via kubectl:
kubectl get nodes
Nodes must be in status
Ready
.
-
Install the Kubernetes kubectl console client by official instruction.
-
В control panels go to Cloud platform → Kubernetes.
-
Open the cluster page → tab Settings.
-
If you use private kube API, check access to it. IP address is specified in the field Kube API.
-
Click Download kubeconfig. Downloading the kubeconfig file is not available if the cluster status is
PENDING_CREATE
,PENDING_ROTATE_CERTS
,PENDING_DELETE
orERROR
. -
Run PowerShell as an administrator.
-
Export to an environment variable
KUBECONFIG
path to the kubeconfig file:$env:KUBECONFIG = <path>
Specify
<path>
— path to the kubeconfig fileимя_кластера.yaml
. -
Check if the configuration is correct — access the cluster via kubectl:
kubectl get nodes
Nodes must be in status
Ready
.