Imperative commands - Sandeep-K-Khandelwal/CKAD GitHub Wiki
- POD -
kubectl run nginx --image=nginx --dry-run=client -o yaml - Deployment -
kubectl create deployment --image=nginx nginx --dry-run -o yaml - Cluster Ip Service -
kubectl create service clusterip redis-service --tcp=6379:6379 --dry-run=client -o yaml - Node Port Service -
kubectl create service nodeport nginx-service --tcp=80:80 --node-port=30080 --dry-run=client -o yaml