2bon2b
2bon2b

Reputation: 165

Flask not working on Kubernetes (GKE) Load balancer IP address

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:

enter image description here

Upvotes: 0

Views: 355

Answers (1)

James Rine
James Rine

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

Related Questions