-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Is it possible to define different healthcheck protocol for a Service exposing two or more NodePorts ? #3346
Comments
@hajdukda, you can try through the service annotations: |
My issue is not with port but protocol. First one uses Question is how to set |
@hajdukda, would you be able to use 2 services? our currently annotation |
If that's the case and this issue is closed. Should I open another one to update documentation to mention that AWS LB Controller supports only services with a single port exposed ? |
Sure we can track in this issue, you're welcome to contribute a PR to add it in our live doc: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.6/guide/service/annotations/#health-check /kind documentation |
what is the way forward then ? If have the same situation, if I use the traffic-port with HTTP protocol on the health check, my HTTPS target group will never be healthy and vice-versa. |
@shraddhabang while #3547 clarifies the doc, I think it would be nice to have guidance on how to handle this use case. Having multiple ports seems to be a very common situation, typically for both ports 80 and 443. I tested the use |
As a workaround for my setup. I found that if you define the nodePorts for http and https you can then use them within the health check annotations and can use one protocol. Given this was just a healthcheck, use of http was sufficient.
|
Let's say we have a Service:
It will create two target groups -> one for port 443 and one for port 80, how to set a different healthcheck for them ?
The text was updated successfully, but these errors were encountered: