LAB Introduction to Kubernetes Engine
LAB: Introduction to Kubernetes Engine
- Login into the GCP Console.
- Starting Cloud Shell.
- Creating a basic python application.
- Building a docker image.
- Creating a cluster with 2 nodes and deploying the image.
- Testing the API.
Login to Google Console , and Click on Kubernetes Engine icon.
Click on the Cloud Shell icon in the top right corner as shown below
The Cloud Shell window will load at the bottom of your screen. Set the Project ID variable
to your assigned Project ID, which we will use later in the commands, instead of re-writing the project id every time, we can re-use using avariable. Replace <username> with the User name.
Enter the below command to create a directory named gke-app.
Enter the below command to change the directory to your created directory.
Enter the below command to create a file dclessonsapp.py and open it in a text editor.