-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
externalTrafficPolicy: Local with Type: LoadBalancer AWS NLB health checks failing #80579
Comments
/triage unresolved Comment 🤖 I am a bot run by vllry. 👩🔬 |
/sig aws |
/assign @nckturner @mcrute @jaypipes |
@andrewsykim: GitHub didn't allow me to assign the following users: jaypipes. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello,
|
My node name is:
But my node hostname is:
And kube-proxy is running with flag: I guess that code is somewehere expecting hostname and node name to be the same in order for health check to work/has local endpoints. Can this be fixed? Is there a way I can configure kube-proxy via KOPS to have same hostname and node name? Best, Zeljko |
Hi @denmaddog! This is actually a known limitation where the AWS cloud provider does not allow for |
/close Closing this for now since it's a known issue, feel free to re-open @denmaddog if needed |
@andrewsykim: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We followed this: https://aws.amazon.com/premiumsupport/knowledge-center/eks-troubleshoot-unhealthy-targets-nlb/ and it resolved the issue after following
|
What happened:
Hello,
I have a service with valid endpoints. Configured as:
It creates AWS ELB, with healthchecks pointing at: HTTP:32181/healthz.
From node on which POD resides when I do:
also with curl on node:
I guess 503 is due: "localEndpoints": 0, but I have no idea why it says 0, when service itself has endpoints.
any idea?
is it even possible to have this working with AWS?
It work when External Traffic Policy: Cluster ... but I need Local to preserve source IP if possible
but for some reason AWS NLB health checks are failing
What you expected to happen:
I expect health checks to work, target instances in AWS NLB to be healthy.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.9", GitCommit:"e09f5c40b55c91f681a46ee17f9bc447eeacee57", GitTreeState:"clean", BuildDate:"2019-05-27T16:08:57Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.10", GitCommit:"e3c134023df5dea457638b614ee17ef234dc34a6", GitTreeState:"clean", BuildDate:"2019-07-08T03:40:54Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
root@ip-10-11-1-16:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Linux ip-10-11-1-16 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux
/sig cloud-provider
/sig network
The text was updated successfully, but these errors were encountered: