kubectl expose
Jump to navigation
Jump to search
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_expose/ Take a replication controller, service or pod and expose it as a new Kubernetes Service
kubectl expose deployment nginxapp --name=nginxclusterip --port=80 --target-port=8080
Related[edit]
See also[edit]
kubectl
: [create
|delete
|edit
|apply
|exec
|get
|set
|rolling-update
|rollout
|logs
|run
|auth
|label
|version
|top
|diff
|debug
|replace
|describe
|config
|port-forward
|scale
|rollout
|api-resources
|proxy
|expose deployment
|expose
|get endpoints
|~/.kube/config
|kubectl logs --help
|kubectl --help