Configuring kubectl

Before bootstrapping, you must configure kubectl to point to the Kubernetes cluster.

If you created the cluster on a bare-metal Kubernetes environment, do the following:
  1. Run the following command to determine the cluster to point to:
    kubectl config get-contexts
  2. Run the following command to point to the cluster:
    kubectl config use-context <cluster name>
    For more information, see Configure Access to Multiple Clusters.
If you installed the cluster on the Google cloud, and kubectl is not set up yet, do the following to point kubectl to the Kubernetes cluster in GCE:
  1. Open a browser and log in to Google cloud at the following URL:
  2. Go to Console > Kubernetes Engine > Clusters page, and click the name of your cluster to display your cluster details.
  3. Click Connect to open the Connect to the cluster window.
  4. Copy the command-line access to configure kubectl to point to your cluster and run the command in your terminal. After the command runs, you can verify that kubectl is pointing to the correct cluster by running the following command:
    kubectl config get-clusters

You can now proceed to create a Custom Resource for a Compute Space (Cspace). Your CSpace can access data on an existing storage cluster in your on-prem or other supported environment. For more information, see Creating a Compute Space.