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-sdkcommand.
Procedure
-
Create a Kubernetes, version 1.9 or higher, cluster. For details, see Creating a cluster.
-
Create a new project with the
eclipse-che-1ID in the Google Cloud Platform (GCP) web console. -
Configure the different default options (such as using the
europe-wes1-bzone) 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
-
Check if all the components are up-to-date:
$ gcloud components update All components are up to date.
-
Create a cluster with the name
eclipse-che:$ gcloud container clusters create eclipse-che --zone europe-west1-b
-
Wait for the cluster to be ready.
-
The Kubernetes context is defined automatically. To verify it:
$ kubectl config current-context gke_eclipse-che-1_europe-west1-b_eclipse-che