Skip to content

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)

Assumptions must be made for Google Cloud information.

  • foobar-opstella for Google Cloud Project ID.
  • Mainly use asia-southeast1 Region, asia-southeast1-a Zone.

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.

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.


This must be done through Web Management Console.

  1. Go to Google Cloud - Web Management Console

  2. Go to APIs & services menu > Enabled APIs & services

    Click on

  3. Enable these APIs & Services with Search box

    • Compute Engine API
    • Kubernetes Engine API

This will be done on Bastion Host.

  1. Install Google Cloud CLI. Please follow the official document from Google, Install Google Cloud CLI

  2. 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-company is the name of Configuration Profile.
    Terminal window
    gcloud config configurations create foobar-company
    gcloud config configurations activate foobar-company
    Terminal window
    gcloud auth login

    With 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-opstella
    gcloud config set compute/region asia-southeast1
    gcloud config set compute/zone asia-southeast1-a

    Once set, run gcloud config configurations list. Should finally look like this.

    NAME IS_ACTIVE ACCOUNT PROJECT COMPUTE_DEFAULT_ZONE COMPUTE_DEFAULT_REGION
    default False
    foobar-company True account@foobar.com foobar-opstella asia-southeast1-a asia-southeast1