Back

Accessing a cluster

To deploy applications, inspect and manage cluster resources, you need to use the Kubernetes command-line tool – kubectl (see the installation instructions).

In order for kubectl to find and access a Kubernetes cluster, it needs a configuration file (kubeconfig file). Download the configuration file for your cluster from the "Kubernetes Cluster Details" page in the Customer Portal:

Accessing a cluster

Export KUBECONFIG environment variable with the path to the config file as a value:

export KUBECONFIG=~/.kube/k8s_config_CLUSTER-NAME.yaml

Check that kubectl is properly configured by getting the cluster state:

kubectl cluster-info

Share

Suggested Articles

  • Kubernetes clusters

    Creating a cluster

  • Kubernetes clusters

    Adding and removing worker nodes