1
0
Fork 0
trainings/kubernetes/training/lessons/2-cat-dog.md

24 lines
714 B
Markdown

# Kubernetes Cats and Dogs
## The dog api
Behind demo-flask, we are using thecatapi.com
The same API also exist for dogs: thedogapi.com
## Exo
What you need to do now is to create a new deployment that will use the dog api.
At the end, when browsing the website, I want to see half of the time a dog, half of the time a cat.
Try to figure out how to achieve this.
Some clues:
- you may need to use configmap and volumes to change start.py
- you may need to create two deployments (one for cats, one for dogs)
- you may need to use the same labels for both deployments so the service will loadbalance between the two of them
## Bonus
Add some HTTPS certificates using letsencrypt (maybe using certmanager)