Add new deployment with dogs
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
parent
c1e1cc568a
commit
52ff2c10ae
|
@ -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.
Loading…
Reference in New Issue