kubectl expose pod on container port 8080 code example
Example: how to expose external ip in kubernetes
kubectl expose deployment hello-world --type=LoadBalancer --name=my-service
kubectl expose deployment hello-world --type=LoadBalancer --name=my-service