1
0
Fork 0

Add new deployment with dogs

Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
Arnaud M 2025-01-20 11:37:48 +01:00
parent c1e1cc568a
commit 52ff2c10ae
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# 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)

Binary file not shown.