Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 604 Bytes

File metadata and controls

32 lines (23 loc) · 604 Bytes

1. Create a Pod from Nginx Image

kubectl run nginx --image=nginx

kubectl get pods

2. Create a Pod from Nginx Image with Dry Run

kubectl run nginx2 --image=nginx --dry-run=client

kubectl get pods

3. Create a Pod from Nginx Image with Output of YAML

kubectl run nginx2 --image=nginx -o yaml

4. Main Command of this Video to Create Manifest File

kubectl run nginx4 --image=nginx --dry-run=client -o yaml

kubectl run nginx4 --image=nginx --dry-run=client -o yaml > pod-custom.yaml

4. Delete All Pods

kubectl delete pod --all