Skip to main content
Version: 2.1

Connect to a Kubernetes cluster

Kubernetes usage and connection overview​

Once a Kubernetes cluster is created, you can connect and interact with cluster resources by downloading the Kubernetes configuration file from the CubeCMP Kubernetes cluster management interface.

Obtain the Kubernetes configuration file and connect to a Kubernetes cluster​

Prerequisites​

  • Ensure your endpoint has the kubectl package installed.

    kubectl is the command-line tool for managing Kubernetes clusters. It is required to interact with your Kubernetes cluster resources. For installation instructions, see Install Tools. To learn more about kubectl, see kubectl documentation.

Download the Kubernetes cluster configuration file (kubeconfig) from CubeCMP​

  1. In the CubeCMP user portal, navigate to Kubernetes.
  2. Select the cluster name to view basic cluster information.
  3. Go to Cluster Configuration and click Download Kubeconfig to download the Kubernetes cluster configuration file.
  4. Save the kubeconfig file locally in YAML format.

Connect to a Kuberntes cluster with kueconfig​

  1. Open a terminal session with kubectl installed.

  2. Use the following command to interact with your Kubernetes cluster:

    kubectl --kubeconfig=<path-to-your-kubeconfig-file-name>.yaml <command-to-run>