kubernetes restrict pod access to external ip 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