Skip to content

Commit

Permalink
chore: add scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Neferites committed Jun 18, 2024
1 parent 1c4a95a commit 4901e0c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deployment/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"title": "Corriger un déploiement",
"text": "step2/step2.md",
"verify": "step2/verify.sh"
},
{
"title": "Corriger un déploiement",
"text": "step3/step3.md",
"verify": "step3/verify.sh"
}
],
"assets": {
Expand Down
7 changes: 7 additions & 0 deletions deployment/step3/step3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Exercices
Comment faire pour avoir plusieurs réplicas de notre déploiement hello ?
But: si un des pods est non fonctionnel, le service a d'autres endpoints pour pouvoir délivrer l'application.

En utilisant la méthode impérative (utilisation de kubectl), augmenter le nombre de réplicas du déploiement hello à 3.

> Il est possible de retrouver la syntaxe exacte d'une sous commande kubectl avec l'option --help. Essayer donc la commande `kubectl scale deployments --help`
3 changes: 3 additions & 0 deletions deployment/step3/verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

kubectl get deployments.apps hello -o jsonpath='{.status.replicas}' | grep 3

0 comments on commit 4901e0c

Please sign in to comment.