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
Successful connection to services within the CIDR of the serviceClusterIPs while using the externalTrafficPolicy: Cluster service.
Current Behavior
I have 3 LoadBalancer services on my cluster, the external IP addresses are allocated by MetallLB. A calico BGPConfiguration is used to advertise the CIDR used for the external addresses via BGP. While I can connect to both nging-ingress services via the external IP (both use externalTrafficPolicy: Local), I cannot connect to the mqtt service, which uses externalTrafficPolicy: Cluster. After changing externalTrafficPolicy: Cluster to externalTrafficPolicy: Local in the service homeassistant/mosquitto I can successfully connect to 10.168.65.47:8883.
The main difference between the traffic flow for cluster / local is that cluster traffic will be SNAT'd upon arrival in the cluster - I wonder if perhaps there is something dropping that traffic. Do you have any network policy on the destination pods? Or cloud firewall rules that might impact cross node traffic?
Expected Behavior
Successful connection to services within the CIDR of the
serviceClusterIPs
while using theexternalTrafficPolicy: Cluster
service.Current Behavior
I have 3
LoadBalancer
services on my cluster, the external IP addresses are allocated by MetallLB. A calicoBGPConfiguration
is used to advertise the CIDR used for the external addresses via BGP. While I can connect to bothnging-ingress
services via the external IP (both useexternalTrafficPolicy: Local
), I cannot connect to the mqtt service, which usesexternalTrafficPolicy: Cluster
. After changingexternalTrafficPolicy: Cluster
toexternalTrafficPolicy: Local
in the servicehomeassistant/mosquitto
I can successfully connect to10.168.65.47:8883
.Services and connection tests:
❯ kubectl get service -A | grep Load nginx-public ingress-nginx-public-controller LoadBalancer 172.17.216.223 10.168.65.45 80:30199/TCP,443:30776/TCP 25d homeassistant mosquitto LoadBalancer 172.17.213.36 10.168.65.47 8883:30891/TCP 10d nginx-private ingress-nginx-private-controller LoadBalancer 172.17.33.119 10.168.65.46 80:31795/TCP,443:32707/TCP 25d ❯ nc -v 10.168.65.47 8883 -w 1 Ncat: Version 7.94 ( https://nmap.org/ncat ) Ncat: TIMEOUT. ❯ nc -v 10.168.65.45 443 -w 1 Ncat: Version 7.94 ( https://nmap.org/ncat ) Ncat: Connected to 10.168.65.45:443.
BGPConfiguration:
Test after
externalTrafficPolicy: Local
was set:Your Environment
The text was updated successfully, but these errors were encountered: