1 Answers
Hi Anshumankmr,
You don’t need to change anything in the code.
To have access to an application running on kubernetes, you will need need a load balancer.
Nigel supplied the web-lb.yml. So all that you need to do is to deploy it:
$ kubectl apply -f ./web-lb.yml
Then, check it for the public IP address:
$ kubectl get svc web-svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
web-svc LoadBalancer 10.108.0.89 34.75.254.254 80:30527/TCP 4m51s
Now you just need to copy the load balancer public IP address (34.75.254.254 in my case) and paste it on your browser.
HTH