Cheatsheet Pages / kubectl Cheatsheet
How to create a deployment in one line — kubectl create deployment
You need a simple deployment running right now, without writing YAML first.
Placeholders follow the cheatsheet: web is a deployment/pod name and app.yaml is your manifest. Most commands act on the current namespace — add -n <ns> to target another one.
kubectl create deployment web --image=nginx:1.27 --replicas=3
kubectl expose deployment web --type=LoadBalancer --port=80 # give it a Service right away
