-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cluster DNS resolution fails after ambassador container restarts #5785
Comments
Looking at another container on our cluster,
Perhaps this is an issue with the container being based on I got it to work by changing the
|
It seems like busybox |
Works on |
After further inspection, it seems like
The only processes running are
|
was caused by another container on the same pod |
Describe the bug
A clear and concise description of what the bug is.
If the ambassador container restarts (e.g., due to
OOMKill
), then cluster DNS resolution will fail with a503
status. This is then shown as a403
status to the client.This can be resolved via:
k rollout restart -n emissary deployment/emissary-ingress
; ork exec -n emissary deployment/emissary-ingress -c ambassador -- echo /etc/hosts << "authserver.authserver <service-cluster-ip>"
Predictably, setting
failure_mode_allow: true
on theAuthService
also "resolves" it, but only by allowing it to bypass the auth server which is not acceptable.To Reproduce
Steps to reproduce the behavior:
AuthService
that points to yourService
k exec -n emissary deployment/emissary-ingress -c ambassador -- cat /ambassador/clustermap.json
, e.g., ask exec -n emissary deployment/emissary-ingress -c ambassador -- curl -X POST localhost:8001/quitquitquit
AuthService
Expected behavior
DNS resolution should continue to work after container restarts.
Versions (please complete the following information):
Additional context
I also noticed that regardless of the state of ambassador, running
k exec -n emissary deployment/emissary-ingress -c ambassador -- nslookup authserver.authserver.svc.cluster.local
fails. It only works if I dok exec -n emissary deployment/emissary-ingress -c ambassador -- nslookup authserver.authserver.svc.cluster.local <dns-ip>
with<dns-ip>
being theClusterIP
of thekube-system/kubedns
Service
.The text was updated successfully, but these errors were encountered: