Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 779 Bytes

run-with-example.md

File metadata and controls

41 lines (30 loc) · 779 Bytes

Einen Pod starten (und wieder löschen)

Beispiel 1 (das funktioniert)

# Zeigt mir die Pods die laufen
kubectl get pods 

# Aufbau des Befehls  
# kubectl run NAME --image=IMAGE_EG_FROM_DOCKER

# Ein Beispiel
kubectl run nginx --image=nginx:1.25.1

kubectl get pods 
# Alle nodes anzeigen
kubectl get nods -o wide 
# Auf welchem Node läuft der Pods
kubectl get pods -o wide 

Beispiel 2 (das nicht funktioniert !!)

kubectl run foo2 --image=foo2
# ImageErrPull - Image konnte nicht geladen werden 
kubectl get pods 
# Weitere status - info 
kubectl describe pods foo2 

Beide Pods wieder löschen

kubectl delete pods nginx foo2 
kubectl get pods

Referenz: