Add hostname annotation to set loadbalancer ingress hostname#48
Conversation
This fixes problems with kube-proxy in ipvs mode considering the lb IP as local to the node See kubernetes/kubernetes#66607 This can also be used to access PROXY proto service from the inside
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
@hrak
can you describe how to use/test it ?
|
Did some manual testing. After this change, I have verified that the service created has external IP equal to hostname set in |
cool, thanks @vishesh92 |
|
@weizhouapache I am not able to reproduce the issue, but I can verify the functionality is working as expected. For why hostname is required as part of the loadbalancerStatus, check: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#loadbalanceringress-v1-core |
This fixes problems with kube-proxy in ipvs mode considering the loadbalancer IP as local to the node (causing loadbalanced services to be unreachable).
See kubernetes/kubernetes#66607
This can also be used to access PROXY proto service from the inside.