Add new deployment with dogs
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
23
kubernetes/training/lessons/2-cat-dog.md
Normal file
23
kubernetes/training/lessons/2-cat-dog.md
Normal 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)
|
||||||
BIN
kubernetes/training/lessons/deployment-2-dogs.yml.gpg
Normal file
BIN
kubernetes/training/lessons/deployment-2-dogs.yml.gpg
Normal file
Binary file not shown.
Reference in New Issue
Block a user