This is a simple guide that helps you to deploy Flask App on Google Kubernetes Engine. This guide should be relevant on any Kubernetes cluster.

Suppose that we want to deploy the following Flask app to Kubernetes:

.

├── app.py

├── config.py

└── requirements.txt

This app is a simple HTTP server that listen to specified PORT number. We can enable/disable debug mode by setting the DEBUG_MODE environment variable. We can run the HTTP server locally using the following command: