Skip to main content

🔑 Cluster Access with kubectl

kubectl is the terminal tool used to create and manage everything inside the cluster (pods, services, ingress...). To use it, you need an access file called kubeconfig.

warning

The kubeconfig is a credential for your cluster. Do not share or publish this file.


🚀 Before you start​

🚀 1. Download the kubeconfig​

  1. In the Nuvion Panel, go to Compute > Kubernetes.
  2. Click the cluster name. The side panel will open.
  3. Click Download kubeconfig.

Download kubeconfig in the cluster panel

tip

The Kubernetes Access button, in the top right corner of the cluster list, also shows the access instructions.

Kubernetes cluster list

🚀 2. Configure kubectl​

export KUBECONFIG=~/Downloads/FILE-NAME.yaml

🚀 3. Test the connection​

kubectl get nodes

You should see the cluster nodes (masters and workers) with STATUS Ready.

❗ Common problems​

MessageCauseSolution
kubectl: command not foundkubectl not installedInstall kubectl
connection refused or timeoutNo network access to the clusterCheck your connection and that the cluster is Active
no configuration has been providedKUBECONFIG variable not setRepeat step 2

➡️ Next step: Pods

🧠 Questions?​

Talk to our SaveinCloud technical support team!