Description:
- Expose a resource as a new Kubernetes Service
- supports: pod, deploy, svc, rc, rs
kubectl expose deployment nginx --port 80 --type LoadBalancer
Synopsis:
kubectl expose(-f FILENAME | TYPE NAME)[--port=port][--protocol=TCP|UDP|SCTP][--target-port=number-or-name][--name=name][--external-ip=external-ip-of-service][--type=type]- 1 of 4 CLEN types of Kubernetes Service
List of options:
--dry-run