In this article, I’ll demonstrate an implementation of building a K8s stack in GCP using gcloud command line, terraform and kubectl. The application was made using Python. Every process will be executed in Docker.
The source code is available on Github.
Thi app runs commands using gcloud, terraform and kubectl command lines. The sequence of executions is:
In the Terraform scripts, the simplest possible infrastructure was created to build a K8s environment. They contain the services:
The K8s cluster was built using only one node and e2-medium instance, using the K8s managed services from GCP.
#python #kubernetes #gcp #terraform #k8s