Skip to content

Latest commit

 

History

History

0-prereqs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Prerequisites

To follow these steps, you will need to have your own GCP account.

A GCP account can be created for free, and with a new account you get a one-year free trial phase with $300 worth of credits to experiment with the GCP products. You will need some of these credits to follow along.

The cost of having a small kubernetes cluster for a few days came to about $3-4 per day. Don't forget to remove unused resources or you may be billed by GCP!

⚠️ Important: You will need your own cloud account. This is not an exercise that you can do locally or with a loaned cloud instance.

Setup steps

1 - Create GCP account

Sign in or set up a new account on Google Cloud Platform: https://cloud.google.com/

You will need to provide a valid credit card in order to complete the account setup. If you cannot provide a credit card or bank account, you will not be able to proceed with this exercise. In this case, just watch and learn for future reference.

Once you are signed in, proceed to the Console. The Console is your starting point in GCP, and we will get back to the Console again and again.

2 - Create a project

A first default project is created for you, named My First Project. We are using this project to host our Kubernetes cluster.

3 - Create your Google Kubernetes Engine cluster

On the left hand side panel in the Console, go to Kubernetes Engine > Clusters

Screenshot 2020-08-16 at 05 09 18

Select CREATE CLUSTER

For this exercise, we following the guide for the recommended starter cluster:

Screenshot 2020-08-16 at 05 15 11

Select CREATE NOW

It takes a bit of time until this is created (3-5mins). Here you see my-first-cluster-1 being created.

Screenshot 2020-08-18 at 11 09 04

Once created, you will see the allocated resource:

Screenshot 2020-08-18 at 11 13 04

Click on the Connect button to open a console terminal to control this cluster

Select to Run in Cloud Shell:

Screenshot 2020-08-16 at 05 22 27

Screenshot 2020-08-16 at 05 23 27

Congratulations, you created your cluster. Now, let's explore nodes and pods HERE.