-
Notifications
You must be signed in to change notification settings - Fork 273
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
Health probe configuration should be applied to specific port. #949
Comments
Agreed, because no port is defined in the annotation, the protocol is applied to all ports. +1 to add a new annotation for overwriting the protocol for a specific port. |
/assign |
Following parameter should be per-port specific and should be depreciated later. cloud-provider-azure/pkg/consts/consts.go Lines 258 to 273 in bb44e05
In order to keep backward compatible, probe configuration is applied only when there is only one port defined in service. Otherwise, the provider should reject the input params and throw an error. We also need to introduce a few constraints.
|
sgtm |
Why introducing this limitation? Could we fallback to port number if the name is not defined? |
I think that's because of the new annotation pattern
|
OK, that makes sense |
Exactly! I will raise a pr later. Thanks for your time! |
One more scenario we should consider is HA mode of routing rule in internal SLB. When HA mode in routing rule is enabled, traffic on all ports of frontend IP is load balanced. Should we support this mode? Because lb accepts traffic from unmanaged port range which is different from what is expected from kubernetes service object and It also makes sensitive ports of VM hosts exposed to vnet and we need to add extra inbound rules to eliminate security concerns we mentioned above. @feiskyer @nilo19 Could you please share your option on this ? Thanks! |
Refer HA ports annotation |
Since service port is unique and we can use following pattern instead
|
What happened:
Health probe configurations are applied to all ports of the service.
What you expected to happen:
Health probe configuration should be applied to specific port.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Nothing else
Environment:
Not needed.
The text was updated successfully, but these errors were encountered: