GKE hands-on example
In this hands-on example, we will take a simple web application written in Python that implements a phonebook, using a MySQL database to store its data. Contact entries include a name and a phone number, and the application will let us view our contact list, add new contacts, and delete any of them.
We will create a Cloud SQL instance to replace MySQL and containerize the application to serve requests from a frontend running on an autopilot GKE cluster:
Figure 6.2 – Architecture diagram for our GKE hands-on example
First, select the project that you will use for this example by going to https://console.cloud.google.com/projectselector/kubernetes. If you haven’t done so yet, the selector will take you to the Kubernetes API screen so that you can enable it by clicking on the blue button with the text ENABLE. Please be patient since this process may take a few seconds or even minutes. However, once it’s completed...