Create a service from an existing pod.
Section: Services and Ingress
Expose pod as service
bash
bash
kubectl expose pod debug-shell --port=8080 --target-port=8080 --name=debug-shell-svc -n toolsExplanation
Create a service from an existing pod.
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 Services and Ingress