Logo
OpenScaler

Access Your Cluster from Terminal

To access your cluster from your terminal, follow these steps:

Install kubectl

You will need to install the Kubernetes CLI (kubectl).

Tip

You probably don't need to scroll far, you'll find instructions right at the top for common platforms: Linux, macOS, Windows.

Download your cluster's Kubeconfig

  • Click the Download Kubeconfig button in the cluster details page. Download Kubeconfig
  • Now copy your Kubeconfig file somewhere safe, and copy the file path (e.g. /home/user/my-cluster-123/admin.conf).

Define the KUBECONFIG environment variable

  • Open a terminal and run the following command:
export KUBECONFIG=PATH_TO_YOUR_KUBECONFIG_FILE
Done!

You may now access your cluster using the kubectl command ! Try it out:

kubectl get nodes

Allow Scheduling on Single Node Cluster

Single Node Cluster

If you are using a single node cluster, you need to allow scheduling on the node.

kubectl taint nodes --all node-role.kubernetes.io/control-plane-

Next Steps

Configure Load Balancer

Add a load balancer to your cluster to allow public access to your cluster.

On this page