How to connect to your managed Kubernetes cluster with kubectl

Skip to main content
Print

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

  1. Wait for the status Running; creation usually takes a few minutes.
  2. Click View connection details, then Download kubeconfig.
  3. export KUBECONFIG=/path/to/kubeconfig-NNN.yaml
  4. kubectl 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.
Table of Contents

Get your website online with PD Hosting

UK hosting, domains and support from a real team. From a first site to a full server.

Terms and Conditions  ·  Privacy Policy

PD Hosting is the trading name of Projektif Digital Ltd, registered in England and Wales, company number 12482555.