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
kubectlpackage 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β
- In the CubeCMP user portal, navigate to Kubernetes.
- Select the cluster name to view basic cluster information.
- Go to Cluster Configuration and click Download Kubeconfig to download the Kubernetes cluster configuration file.
- Save the kubeconfig file locally in YAML format.
Connect to a Kuberntes cluster with kueconfigβ
-
Open a terminal session with
kubectlinstalled. -
Use the following command to interact with your Kubernetes cluster:
kubectl --kubeconfig=<path-to-your-kubeconfig-file-name>.yaml <command-to-run>