Outils pour utilisateurs

Outils du site


tech:notes_kubernetes_k8s_-_utilisation

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_kubernetes_k8s_-_utilisation [2025/11/06 15:31] Jean-Baptistetech:notes_kubernetes_k8s_-_utilisation [2025/11/11 22:45] (Version actuelle) Jean-Baptiste
Ligne 187: Ligne 187:
 </code> </code>
  
-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
 +</code>
 +
 +Get a shell to a specific running container
 +<code bash>
 +# Get containers list
 +kubectl get pod awx-task-777db545b8-7npjl -o jsonpath='{.spec.containers[*].name }{"\n"}'
 +
 +kubectl exec -ti awx-task-777db545b8-7npjl --container awx-ee -- /bin/bash
 </code> </code>
  
Ligne 215: Ligne 222:
 Création d'un pod Création d'un pod
  
-<code yaml nginx.yaml>+''nginx.yaml'' 
 +<code yaml>
 apiVersion: v1 apiVersion: v1
 kind: Pod kind: Pod
tech/notes_kubernetes_k8s_-_utilisation.1762439511.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki