You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
Attempting to enable SourceIP preservation as described here using externalTrafficPolicy: Local fails, as the IP-address seen by the pod is always the weave ip of the node.
What you expected to happen:
The client-ip should be preserved and the pod should be able to access it.
How to reproduce it (as minimally and precisely as possible):
Setup a basic pharos cluster with weave-net (default), no fancy config
Anything else we need to know?:
This should be related to weaveworks/weave#2924, as weave masquerades the local traffic by default. This is highly undesired, as applications like ingress-controllers need the source-ip for subnetting, rate-limiting, etc.
According to the issue linked above, this should be fixable by adding the env-var NO_MASQ_LOCAL=1 over here:
Maybe this needs to be set as configurable option that is still disabled by default. I mean there's quite a few setups out there that actually might expect/depend on the way it currently works and now if we change this to default to no masquerading, we might break existing clusters.
What happened:
Attempting to enable SourceIP preservation as described here using
externalTrafficPolicy: Local
fails, as the IP-address seen by the pod is always the weave ip of the node.What you expected to happen:
The client-ip should be preserved and the pod should be able to access it.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
This should be related to weaveworks/weave#2924, as weave masquerades the local traffic by default. This is highly undesired, as applications like ingress-controllers need the source-ip for subnetting, rate-limiting, etc.
According to the issue linked above, this should be fixable by adding the env-var
NO_MASQ_LOCAL=1
over here:pharos-cluster/lib/pharos/resources/weave/daemon-set.yml.erb
Lines 18 to 29 in 88162bb
Environment:
pharos --version
): 2.1.2cluster.yml:
The text was updated successfully, but these errors were encountered: