Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 809 Bytes

File metadata and controls

53 lines (43 loc) · 809 Bytes

Create a new POD from Nginx Image

kubectl run nginx --image=nginx

List the PODS that are currently running.

kubectl get pods

View Logs of a Specific Pod

kubectl logs nginx

Describe Pod Information in Detail

kubectl describe pod nginx

Connect inside the POD

kubectl exec -it nginx  -- bash

Delete the POD

kubectl delete pod nginx

View Node Information

kubectl get nodes

kubectl describe node <add-node-name-here>

Create 2 Pods as shown in video

kubectl run nginx-01 --image=nginx
kubectl run nginx-02 --image=nginx

View Pods with Output of Wide

kubectl get pods -o wide

Delete the Pods Created

kubectl delete pod nginx-01
kubectl delete pod nginx-02