Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 421 Bytes

File metadata and controls

26 lines (19 loc) · 421 Bytes

1. Create a Pod from Nginx Image

kubectl run nginx --image=nginx

kubectl get pods

2. Create a Pod and Expose a Port

kubectl run nginx-port --image=nginx --port=80
kubectl describe pod nginx-port

3. Output the Manifest File

kubectl run nginx --image=nginx --port=80 --dry-run=client -o yaml

4. Delete PODS

kubectl delete pod nginx

kubectl delete pod --all