Configuring Access to a Kubernetes Cluster

After installing the Kubernetes command line client, kubectl, you can set up the default Kubernetes configuration context that Helm uses to access the Kubernetes cluster and deploy AnzoGraph. The method that you use to set up the configuration context depends on the vendor that hosts the Kubernetes cluster. For information, see the configuration instructions for your vendor. See Configure Access to Multiple Clusters in the Kubernetes documentation for more general information about configuring access to clusters.

This topic provides example instructions that configure a local Linux environment to access a Kubernetes cluster hosted on the Google Cloud Platform.

  1. Run the following command to set the project to the Kubernetes cloud project:
    gcloud config set project k8s_project_name

    For example:

    gcloud config set project cloud-kube-1111
  2. Run the following command to set the compute zone for the Kubernetes cluster:
    gcloud config set compute/zone zone_name

    For example:

    gcloud config set compute/zone us-central1-f
  3. To confirm that you can access the cluster, you can run the following command to view cluster details:
    gcloud container clusters list
  4. Run the following command to fetch the credentials for the cluster:
    gcloud container clusters get-credentials cluster_name

    For example:

    gcloud container clusters get-credentials kube
    Fetching cluster endpoint and auth data.
    kubeconfig entry generated for kube.

Once access to the Kubernetes cluster is configured, see Installing Helm for next steps.

Related Topics