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

Prochaine révision
Révision précédente
tech:notes_kubernetes_k8s_-_utilisation [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech: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 --i 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.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki