tech:notes_kubernetes_k8s_-_utilisation
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_kubernetes_k8s_-_utilisation [2025/11/06 15:31] – Jean-Baptiste | tech:notes_kubernetes_k8s_-_utilisation [2025/11/11 22:45] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 187: | Ligne 187: | ||
| </ | </ | ||
| - | Get a shell to the running container: | + | Get a shell to the running container |
| <code bash> | <code bash> | ||
| - | #kubectl exec --stdin --tty nginx -- /bin/bash | ||
| kubectl exec -ti nginx -- /bin/bash | kubectl exec -ti nginx -- /bin/bash | ||
| + | </ | ||
| + | |||
| + | Get a shell to a specific running container | ||
| + | <code bash> | ||
| + | # Get containers list | ||
| + | kubectl get pod awx-task-777db545b8-7npjl -o jsonpath=' | ||
| + | |||
| + | kubectl exec -ti awx-task-777db545b8-7npjl --container awx-ee -- /bin/bash | ||
| </ | </ | ||
| Ligne 215: | Ligne 222: | ||
| Création d'un pod | Création d'un pod | ||
| - | <code yaml nginx.yaml> | + | '' |
| + | < | ||
| apiVersion: v1 | apiVersion: v1 | ||
| kind: Pod | kind: Pod | ||
tech/notes_kubernetes_k8s_-_utilisation.1762439511.txt.gz · Dernière modification : de Jean-Baptiste
