commit
1c28e2d882
content/fr/docs/concepts/workloads/pods
|
@ -69,7 +69,7 @@ Voici plusieurs idées pour utiliser les init containers :
|
|||
* Attendre qu'un {{< glossary_tooltip text="Service" term_id="service">}} soit créé,
|
||||
en utilisant une commande shell d'une ligne telle que :
|
||||
```shell
|
||||
for i in {1..100}; do sleep 1; if dig myservice; then exit 0; fi; done; exit 1
|
||||
for i in {1..100}; do sleep 1; if nslookup myservice; then exit 0; fi; done; exit 1
|
||||
```
|
||||
|
||||
* Enregistrer ce Pod à un serveur distant depuis l'API downward avec une commande telle que :
|
||||
|
|
Loading…
Reference in New Issue