Skip to content
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

kubelet: Incorrect fallback to hairpin-mode "hairpin-veth" #23322

Closed
NikolayMurha opened this issue Mar 22, 2016 · 2 comments
Closed

kubelet: Incorrect fallback to hairpin-mode "hairpin-veth" #23322

NikolayMurha opened this issue Mar 22, 2016 · 2 comments

Comments

@NikolayMurha
Copy link

Hi guys. I have issue with connecting to PODs itself via service ip.
I determined that the problem with the wrong fallback to harpin-veth.

In kubelet output I have message:

W0322 09:27:09.399179   25899 kubelet.go:508] Hairpin mode set to "promiscuous-bridge" but configureCBR0 is false, falling back to "hairpin-veth"
I0322 09:27:09.399219   25899 kubelet.go:380] Hairpin mode set to "hairpin-veth"

But hairpin_mode for interfaces is 0:

cat /sys/devices/virtual/net/docker0/brif/veth*/hairpin_mode
0
0
0
0

If I set kubelet --hairpin-mod=hairpin-veth all is ok.

Kubelet output

I0322 09:29:08.234951   28239 kubelet.go:380] Hairpin mode set to "hairpin-veth"

and

cat /sys/devices/virtual/net/docker0/brif/veth*/hairpin_mode
1
1
1
1

I think problem is there
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet.go#L408
Because used hairpinMode variable, but value was set above to klet.hairpinMode (https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet.go#L378) .

@NikolayMurha
Copy link
Author

Fix #23325

@bprashanth
Copy link
Contributor

Closed via #23325
@MurgaNikolay thanks for the fix

openshift-publish-robot pushed a commit to openshift/kubernetes that referenced this issue Jul 17, 2019
APIServer CRD: add additionalCORSAllowedOrigins validation

Origin-commit: a96fda52bdf32fc6dcd366e9ff6c444f4d0965fc
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

No branches or pull requests

2 participants