This section describes how to create a Google Kubernetes Engine instance.

Prerequisites
  • The Google Cloud SDK is installed. See Installing Google Cloud SDK.

    To install the SDK on macOS, use the $ brew cask install google-cloud-sdk command.

Procedure
  1. Create a Kubernetes, version 1.9 or higher, cluster. For details, see Creating a cluster.

  2. Create a new project with the eclipse-che-1 ID in the Google Cloud Platform (GCP) web console.

  3. Configure the different default options (such as using the europe-wes1-b zone) in the shell:

    $ gcloud config set project eclipse-che-1
    $ gcloud config set compute/zone europe-west1-b
    $ gcloud config set compute/region europe-west1
  4. Check if all the components are up-to-date:

    $ gcloud components update
    All components are up to date.
  5. Create a cluster with the name eclipse-che:

    $ gcloud container clusters create eclipse-che --zone europe-west1-b
  6. Wait for the cluster to be ready.

  7. The Kubernetes context is defined automatically. To verify it:

    $ kubectl config current-context
    gke_eclipse-che-1_europe-west1-b_eclipse-che