Repository navigation
allow inter-service communication from within cluster via external LB - #87
Merged
0xch4z merged 3 commits intoJan 28, 2021
Merged
Conversation
sibucan
approved these changes
Dec 29, 2020
This commit changes the LoadBalancer status we return from EnsureLoadBalancer and GetLoadBalancer to only include the NodeBalancer hostname and not the IPv4 address. Omitting the IP ensures kube-proxy does not insert rules to hijack requests to the external LB IP from within the cluster to resolve to the cluster IP for the underlying pod. This proxying caused issues for users expecting the NodeBalancer to include proxy-protocol headers. See linode#74. Due to LoadBalancer statuses not including the LB IPv4 address, LB discovery will now be done using the hostname.
0xch4z
force-pushed
the
fix/externalip-kubeproxy-workaround
branch
from
January 28, 2021 14:29
265841e to
db061c7
Compare
0xch4z
added a commit
to 0xch4z/linode-cloud-controller-manager
that referenced
this pull request
Mar 3, 2021
This annotation will allow users to use short-circuit adding the underlying NodeBalancer's IP to the LoadBalancerStatus (see linode#87). This is now an opt-in feature as it's much quicker to expose the IPv4 as an interface for the service than waiting for the DNS A record to be propagated for the hostname.
LBGarber
pushed a commit
to LBGarber/linode-cloud-controller-manager
that referenced
this pull request
Jun 17, 2021
This annotation will allow users to use short-circuit adding the underlying NodeBalancer's IP to the LoadBalancerStatus (see linode#87). This is now an opt-in feature as it's much quicker to expose the IPv4 as an interface for the service than waiting for the DNS A record to be propagated for the hostname.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #74
This changes the LoadBalancer status we return from
EnsureLoadBalancerandGetLoadBalancerto only include the NodeBalancer hostname and not the IPv4 address. Omitting the IP ensures kube-proxy does not insert rules to hijack requests to the external LB IP from within the cluster to resolve to the cluster IP for the underlying pod. This proxying caused issues for users expecting the NodeBalancer to include proxy-protocol headers. See #74.Due to LoadBalancer statuses not including the LB IPv4 address, LB discovery will now be done using the hostname.