Kong / kong-dist-kubernetes

Kubernetes managed Kong cluster
255 stars 137 forks source link

Deploy Kong with HTTP Load Balancer on Google Cloud #68

Open rohgoyal opened 5 years ago

rohgoyal commented 5 years ago

How do I deploy Kong with HTTP Load Balancer on GKE

I am trying to setup Kong on GKE with HTTP Load Balancing. GKE allow creation of HTTP Load Balancer with Ingress Resource. It's documented here. https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer

Problem is HTTP Load Balancer setup default health check rule which expects HTTP 200 status to the GET requests on / path. Kong doesn't provide that out of the box. Does Kong provide any other health check endpoint that I can use with GKE Ingress?

kevinhcross commented 5 years ago

I had the same problem. The only thing I found that I thought would work for me is the suggestion in this thread but I have not gone this route yet as I am not familiar with configuring Kong and do not have time to learn at the moment. I ended up going a more manual route of just configuring a LoadBalancer service on Kong and scripting the DNS set up. Not ideal but it works for now. It would be very helpful if there were standard readiness and liveness endpoints on the public port that do not require authentication (although I am sure there are all sorts of reasons this is not as straight forwards as it sounds).

vTNT commented 5 years ago

+1

vTNT commented 5 years ago

@kevinhcross I configured a LoadBalancer service on Kong, And use konga to enter Kong for configuration management; When I'm done configuring on / path, I'm reusing the Ingress rule.