Articles → DOCKER → Create A Pod In Kubernetes

Create A Pod In Kubernetes






What Is A Pod?





How To Create A Pod?




kubectl run [pod_name] --image=[image]


Picture showing the command to create the pod



How To Get The List Of Pods?




kubectl get pods -o wide


Picture showing the command to get the list of pods




kubectl get po


Picture showing the output of kubectl get po command



Executing Command On Pods




kubectl exec -it pod1 -- /bin/bash



Delete The Pod




kubectl delete po [pod_name]


Picture showing the output of kubectl delete po command



Posted By  -  Karan Gupta
 
Posted On  -  Monday, January 22, 2024
 
Updated On  -  Tuesday, January 30, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250