Create a Service for a workload.
Section: Imperative Resource Creation
Expose deployment
bash
bash
kubectl expose deployment web --port=80 --target-port=8080 --type=ClusterIPExplanation
Create a Service for a workload.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Imperative Resource Creation