Skip to content

Conversation

@hrak
Copy link
Contributor

@hrak hrak commented May 5, 2023

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.

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
Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@hrak
can you describe how to use/test it ?

@vishesh92
Copy link
Member

vishesh92 commented May 22, 2024

Did some manual testing. After this change, I have verified that the service created has external IP equal to hostname set in service.beta.kubernetes.io/cloudstack-load-balancer-hostname. And the same hostname is also set in the status of the service.

@weizhouapache
Copy link
Member

Did some manual testing. After this change, I have verified that the service created has external IP equal to hostname set in service.beta.kubernetes.io/cloudstack-load-balancer-hostname. And the same hostname is also set in the status of the service.

cool, thanks @vishesh92
can you test ipvs mode if the issue can be reproduced and fixed by this change ?

@weizhouapache weizhouapache added this to the 1.1.0 milestone May 22, 2024
@vishesh92
Copy link
Member

@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

@weizhouapache weizhouapache merged commit 0150bf5 into apache:main May 28, 2024
@hrak hrak deleted the ingress_hostname branch September 6, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants