diff --git a/kubernetes/training/lessons/2-cat-dog.md b/kubernetes/training/lessons/2-cat-dog.md new file mode 100644 index 0000000..0e757a2 --- /dev/null +++ b/kubernetes/training/lessons/2-cat-dog.md @@ -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) diff --git a/kubernetes/training/lessons/deployment-2-dogs.yml.gpg b/kubernetes/training/lessons/deployment-2-dogs.yml.gpg new file mode 100644 index 0000000..5154b13 Binary files /dev/null and b/kubernetes/training/lessons/deployment-2-dogs.yml.gpg differ