Kubernetes Weirdness: Cannot Visit Localhost, But Can Use Curl
I am following this tutorial: https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/ on mac osx I have completed all of the steps hello-python-6c7b478cf5-h
Solution 1:
If you are running this demo application on minikube then minikube doesn't supports LB external IP. You can check pending status with this command : kubectl get svc -o wide
.
Resolution :
The LoadBalancer service get a node port assigned too so you can access services via:
$ minikube service my-loadbalancer-service-name
to open browser or add --url flag to output service URL to terminal. You should see something like:
$ minikube service hello-python-service --url
this command will give url output .
Post a Comment for "Kubernetes Weirdness: Cannot Visit Localhost, But Can Use Curl"