Reputation: 165
I have been playing around with deploying a simple Flask app on Kubernetes (GKE).
However, when I go to the LoadBalancer IP address the Flask site is not loading and is throwing the following error: 'Connection refused by the server'
What i have done:
...but when I go to the service IP address in my browser the flask page is not loading.
Does anyone know what I might be doing wrong, given that everything seems to be working fine?
UPDATE Including screenshot of service accounts gotten from kubectl:
Upvotes: 0
Views: 355
Reputation: 11
Try running kubectl get service site -o yaml
make sure that the IP you are connecting to is the one listed under, LoadBalancer.ingress
Relevant documentation:
Upvotes: 0