Below is command.
kubectl expose deploy <deployment name> --port <port no> --type LoadBalancer
For e.g.
kubectl expose deploy hello-world --port 80 --type LoadBalancer
No comments:
Post a Comment