Connect an App to a Cloud SQL for PostgreSQL Instance | Task 2. Solved | GSP919
Автор: Hamdan Fatah
Загружено: 2023-01-10
Просмотров: 45
Описание:
Overview
This lab guides you through connecting an application to a Cloud SQL for PostgreSQL database.
In this lab you will create a Kubernetes cluster and deploy a simple application to that cluster. You will then connect the application to the supplied Cloud SQL for PostgreSQL database instance and confirm that it is able to write to and read from it.
You must create or configure the services and resources that are specified for each task and you must follow any detailed instructions that are provided in order to successfully complete each task.
Objectives
In this lab, you learn to configure an application to access a Cloud SQL for PostgreSQL database.
Task 2. Deploy a lightweight GKE application
In this task you will create a Kubernetes cluster and deploy a lightweight Google Kubernetes Engine (GKE) application on that cluster. You will configure the application to have access to the supplied Cloud SQL instance.
The application provided is a simple Flask-SQLAlchemy web application called gMemegen. It creates memes by supplying a set of photographs and capturing header and footer text, storing them in the database and rendering the meme to a local folder. It runs on a single pod with two containers; one for the application and one for the Cloud SQL Auth Proxy deployed in the side-car pattern.
A load balancer will marshal requests between the app and the database through the side-car. This load balancer will expose an external Ingress IP address through which you will access the app in your browser.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: