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.
-
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.
-
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
.