kubectl 1.37 · Creating and changing

Expose a deployment as a service

Create a service in front of a deployment.

kubectl expose deployment web --port=80

Official kubectl 1.37 documentation

More creating and changing commands

All creating and changing commands · kubectl 1.37 cheatsheet

Was this page helpful?