Skip to main content

Connect to a Managed Kubernetes cluster

To start working with the cluster, you need to configure kubectl.

For your information

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.

  1. install the Kubernetes CLI kubectl.

  2. In the Control panel, on the top menu, click Products and select Managed Kubernetes.

  3. open the cluster page → Settings tab.

  4. if you are using a private Kube API, check access to it. The IP address is specified in the Kube API field.

  5. Click Download kubeconfig. Downloading the kubeconfig file is not available if the cluster status is PENDING_CREATE, PENDING_ROTATE_CERTS, PENDING_DELETE, or ERROR.

  6. Export the path to the kubeconfig file to the KUBECONFIG environment variable:

    export KUBECONFIG=<path>

    Specify <path> as the path to the cluster_name.yaml kubeconfig file, where <cluster_name> is the cluster name.

  7. Check if the configuration is correct — connect to the cluster via kubectl:

    kubectl get nodes

    nodes must be in the Ready status.