kuma: Intermittent DNS Failure with Kong Gateway and multi-zone kuma service mesh
Summary
I have a three cluster setup on GKE:
- Kuma global
- Zona A
- Zone B
Zone A has kong gateway and ingress controller installed along with some other services. To expose the services on Zone B I create an external name on zone A pointing to the service on Zone B and then create an ingress for it.
All works fine, except that intermittently (4-5 times in a day) kong throws this error:
[warn] 1102#0: *494 [lua] base.lua:659: queryDns(): [upstream:services-externalname.services.80.svc 20] querying dns for
fe.dev.svc.80.mesh failed: dns server error: 4 not implemented. Tried ["(short)fe.dev.svc.80.mesh:(na) - cache-
hit/stale","fe.dev.svc.80.mesh.kong-system.svc.cluster.local:1 - cache-hit/dns server error: 3 name
error","fe.dev.svc.80.mesh.svc.cluster.local:
....
Here services-externalname is the name of the external name service on Zone A and fe.dev.svc.80.mesh is the Kuma DNS address for the service running on zone B.
And then this appears:
*6377490 [lua] balancer.lua:258: callback(): [healthchecks] balancer
0dc6f45b-8f8d-40d2-a504-473544ee190b:services-externalname.services.80.svc
reported health status changed to UNHEALTHY, context: ngx.timer, client: 127.0.0.1, server: 127.0.0.1:8444
It stays unhealthy for a minute or so, and then automatically returns back to healthy. During this period kong is not able to serve this and throws the error when trying to access through gateway: Failure to get a peer from the ring balancer
Steps To Reproduce
I am just listing down things I did:
- Setup three GKE clusters running k8s
1.19.12-gke.2101 - Intstalled kuma on all three clusters (one global, two remotes) using helm chart v 0.7.0 (kuma - v1.3.0)
- Installed kong gateway on Zone A using helm chart v 2.3.0 (kong - v2.5, ingress controller - v1.3)
- Setup external name as explained in kuma docs
Additional Details & Logs
- Version - Kuma 1.3.0 and Kong 2.4
- Error logs - Mentioned above
- Configuration - multi-zone with kong as gateway
- Platform and Operating System
- Installation Method - helm
I have tried to follow all steps from the documentation. Did I do a mistake, or is something we need to fix?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (18 by maintainers)
Sorry guys, we no longer have the setup on which we had the issue earlier and so there is no way for me to test or reproduce this. We can close this ticket if similar issues have been addressed.