How to connect to your managed Kubernetes cluster with kubectl
Open your cluster in the PD Hosting client area, click View connection details, download the kubeconfig, then run export KUBECONFIG=/path/to/file and kubectl get nodes.
Applies to: managed Kubernetes.
Connect
- Wait for the status Running; creation usually takes a few minutes.
- Click View connection details, then Download kubeconfig.
export KUBECONFIG=/path/to/kubeconfig-NNN.yamlkubectl get nodes
The file contains your cluster credentials, so store it safely. If they expire, download it again while the cluster is running. If the download isn’t offered, contact support.
See your nodes
Nodes lists each node pool and node with its status. Your cluster comes with two worker nodes; for more nodes or bigger ones, open a support ticket.
Good to know
- Node size, count, version and region come with your plan.
- When a service is cancelled, the cluster and its volumes are deleted, so back up first.