Micro-TP 1 : correction
Vidéo suivanteCette vidéo est réservée aux abonnés. Voir les abonnements
Objectif
Micro-TP 1 : correction.
Points clés
- kubectl get pod hello -o jsonpath='{.status.podIP}'
- sleep infinity : maintenir un pod actif
- Compter les pods par node
- Pod recréé = nouvelle IP
À retenir
- jq ou jsonpath pour récupérer l'IP d'un pod
- Une commande sans fin garde un pod busy actif
- Un pod recréé obtient une nouvelle adresse IP