In this lab you will create a Kubernetes cluster.

Prerequisites:

Create a Project

Every resource in GCP lives inside a project. A project inside GCP is a container for your resources, it allows for separate billing, adding/removing collaborators, managing permissions and more.

To create a new project:

  1. Go to the Cloud Resource Manager (https://console.cloud.google.com/cloud-resource-manager) and click the Create Project button
  2. Select the name of your project, billing account, and location and click Create

There’s no cost for creating new projects, you can always shut them down (delete them) and create new ones. Note that after you shutdown the project, Google schedules it for deletion that happens in 30 days. This allows you to recover the project if needed. However, it also means you won’t be able to re-use the same project name. It’s not a big deal, just one thing to keep in mind.

Enable Kubernetes API

With project created, you can go to the Kubernetes Engine page in GCP (https://console.cloud.google.com/kubernetes). Since you’re using a freshly created project you will have to enable the Kubernetes Engine API first.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a94a8807-1b8d-46e4-930c-2540b641de9c/1-enable-k8s-api.png

Click the Enable button on the Kubernetes Engine API page. The process should take a couple of minutes, and once complete the Kubernetes clusters page will be displayed as shown in the figure below.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1a5c9748-b5e8-4a6d-8cfd-637aafc9a04b/1-k8s-clusters.png

Create a Kubernetes cluster

Let’s create a Kubernetes cluster.