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
- Apply a manifest
- Apply a folder of manifests
- Apply a Kustomize directory
- Create a deployment
- Edit a resource in your editor
- Delete resources from a manifest
All creating and changing commands · kubectl 1.37 cheatsheet