Overview and Prerequsites
To get you up and running quickly on Google Cloud Platform (GCP) with Google Kubernetes Engine (GKE).
So, you should have knowledge and familiar with Cloud Computing Concepts and Google Cloud Platform.
You will be doing these steps.
- Setup Your Working Environment
- Setup Google Cloud Network Resources
- Setup Google Kubernetes Engine (GKE)
Guided Assumptions
Section titled “Guided Assumptions”Assumptions must be made for Google Cloud information.
foobar-opstellafor Google Cloud Project ID.- Mainly use
asia-southeast1Region,asia-southeast1-aZone.
Setup Your Google Cloud Project & Working Environment
Section titled “Setup Your Google Cloud Project & Working Environment”Required dependencies to be done on your Linux Bastion Host and your Google Cloud Project before you proceed.
Google IAM Account Roles/Permissions
Section titled “Google IAM Account Roles/Permissions”You will be using an Google account to access to your Google Cloud project.
The account should have the IAM Pre-Defined Roles assigned the following
- Compute Admin
- Compute Network Admin
- Kubernetes Engine Admin
Go to Google Cloud Platform Web Management Console to assign accordingly.
Enable Google Cloud APIs & Services
Section titled “Enable Google Cloud APIs & Services”This must be done through Web Management Console.
-
Go to
APIs & servicesmenu >Enabled APIs & services
Click on
-
Enable these APIs & Services with Search box

- Compute Engine API

- Kubernetes Engine API

- Compute Engine API
Install and Setup Google Cloud CLI
Section titled “Install and Setup Google Cloud CLI”This will be done on Bastion Host.
-
Install Google Cloud CLI. Please follow the official document from Google, Install Google Cloud CLI
-
Initialise Google Cloud CLI to authenticate CLI to your Google Cloud Project through Google Account by follow this document, Initialise Google Cloud CLI
💡 Tips and Example
- Create a dedicated Configuration Profile and login with Google Account via Browser Token.
- Assume that
foobar-companyis the name of Configuration Profile.
- Assume that
Terminal window gcloud config configurations create foobar-companygcloud config configurations activate foobar-companyTerminal window gcloud auth loginWith Bastion Host with User Desktop Environment, a Web Browser should be opened to let you authenticate.

Once authenticated, set default Google Cloud Project ID, Region and Zone.
Terminal window gcloud config set project foobar-opstellagcloud config set compute/region asia-southeast1gcloud config set compute/zone asia-southeast1-aOnce set, run
gcloud config configurations list. Should finally look like this.NAME IS_ACTIVE ACCOUNT PROJECT COMPUTE_DEFAULT_ZONE COMPUTE_DEFAULT_REGIONdefault Falsefoobar-company True account@foobar.com foobar-opstella asia-southeast1-a asia-southeast1 - Create a dedicated Configuration Profile and login with Google Account via Browser Token.