This is a ~2-hour solution of the cloud task for Kiwi Summer Camp 2019.
It is not perfect, but I mainly aimed to not cross the 2 hour limit too much.
I have done multiple projects on AWS so this was something new for me. I mainly appreciate the possibility to control Kubernetes through Terraform, which is something I knew it existed, but never actually tried it.
This repository consists of the sample Python app and terraform config files.
The folders are named accordingly.
/
└───app
└───terraform
For deploying the stack including the applicaion you will need Terraform. (>= 0.12)
To run the application locally you will need Python3 or Docker.
If you want to develop the application locally you can do it with the following steps
git clone https://github.com/trebidav/kiwi-summer-camp-cloud-task
python3 app/app.py
or if you just want to run it, easiest way is with docker:
docker build -t kiwi-summer-camp-app app/
docker run -p 5000:5000 kiwi-summer-camp-app
dev branch - a build of the image is triggered in Docker Hub. The image is available on davidtrebicky/kiwi-summer-camp-cloud-taskgit clone https://github.com/trebidav/kiwi-summer-camp-cloud-task
cd terraform/
main.tf file according to your GCP credentialsMore information on this is in the main.tf file
TODO: This custom settings could be placed in a terraform.tfvars but I didn't do it for simplicity and time reasons
terraform plan --out=terraform.tfplan
terraform apply "terraform.tfplan"
Outputs:
sample-app-url = http://35.242.194.193:80
It may take some time before it's actually available
Content type
Image
Digest
Size
34.5 MB
Last updated
over 7 years ago
docker pull davidtrebicky/kiwi-summer-camp-cloud-task