-
Notifications
You must be signed in to change notification settings - Fork 607
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
[mailhog] Add extraPorts in Service and extraContainers in Deployment #627
Conversation
Signed-off-by: Julliano Goncalves <jullianow@gmail.com>
Signed-off-by: Julliano Goncalves <jullianow@gmail.com>
@jullianow thanks for the PR. Will be release friday afternoon as a new feature release. |
@grieshaber Very good. |
@grieshaber I'm sending the message in this thread because it has to do with it. Do you think a PR adding a route (E.g. /health) to the Mailhog service makes sense? That's because, even adding a specific container to be used in the health check (as I described in this PR) is not enough. |
@jullianow tbh i'm not very familiar with the GCE native Load-Balancer stuff.
It's not ideal, bc you need to handle the additional ressource though.. But, to understand you 2nd proposal further: |
…oyment (#627) * [mailhog] Add extraPorts in Service and extraContainers in Deployment Signed-off-by: Julliano Goncalves <jullianow@gmail.com> * Code review feedback Signed-off-by: Julliano Goncalves <jullianow@gmail.com>
Yes, it is possible to do what you are talking about. That is, this suggestion of yours was exactly what I did and that I verified that it doesn't work (after seeing the information block of the official documentation).
Perfect. And this route will not suffer from the basic authentication configuration (The pod's readnessProbe would not change (it can remain as is). |
When deploying the mailhog graph using ingress GCE the health check of Google's Load Balancer fails to succeed if the service is configured with basic auth.
This is because the health check is not able to set authentication parameters so that a request gets a return code of 200.
Also, even though there is an smtp port, the load balancer health check only has the ability to communicate via HTTP, HTTPS and HTTP2 protocol.
Reference: https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#direct_health
Therefore, the purpose of this change is to give the ability to add an extra container to be used only as a route for the Load Balancer life check to work, at the same time that mailhog basic authentication is enabled.
Signed-off-by: Julliano Goncalves jullianow@gmail.com