adamant-kite-43734
12/05/2024, 7:49 PMcreamy-pencil-82913
12/05/2024, 7:50 PM/usr/sbin/ethtool -K flannel.1 tx-checksum-ip-generic off
>narrow-carpet-42783
12/05/2024, 8:02 PMcreamy-pencil-82913
12/05/2024, 8:05 PMnarrow-carpet-42783
12/05/2024, 8:08 PMcurl
command that uses haproxy-protocol
to connect.
Did that make any sense?creamy-pencil-82913
12/05/2024, 8:11 PMexternalTrafficPolicy
on your service? Have you tried setting that to local so that it’s not bouncing connections between nodes?creamy-pencil-82913
12/05/2024, 8:12 PMnarrow-carpet-42783
12/05/2024, 8:19 PMnarrow-carpet-42783
12/05/2024, 8:49 PMcreamy-pencil-82913
12/05/2024, 8:50 PMcreamy-pencil-82913
12/05/2024, 8:51 PMnarrow-carpet-42783
12/05/2024, 8:56 PMcreamy-pencil-82913
12/05/2024, 9:02 PMcreamy-pencil-82913
12/05/2024, 9:03 PMcreamy-pencil-82913
12/05/2024, 9:03 PMcreamy-pencil-82913
12/05/2024, 9:04 PMcreamy-pencil-82913
12/05/2024, 9:05 PMnarrow-carpet-42783
12/05/2024, 9:05 PMcreamy-pencil-82913
12/05/2024, 9:06 PMcreamy-pencil-82913
12/05/2024, 9:06 PMnarrow-carpet-42783
12/05/2024, 9:07 PMcreamy-pencil-82913
12/05/2024, 9:07 PMnarrow-carpet-42783
12/05/2024, 9:07 PMcreamy-pencil-82913
12/05/2024, 9:08 PMnarrow-carpet-42783
12/05/2024, 9:14 PMcurl
to the node’s IP address (fails as above)
• From an ingress-nginx pod, curl
to the cluster IP address (fails)
• From an ingress-nginx pod, curl
to the pod’s IP address (works)
Changing the externalTrafficPolicy of the nodeport's service didn’t make any difference.narrow-carpet-42783
12/05/2024, 9:15 PMcurl
to the node’s IP address from that node.creamy-pencil-82913
12/05/2024, 9:17 PMcreamy-pencil-82913
12/05/2024, 9:17 PMcreamy-pencil-82913
12/05/2024, 9:18 PMcreamy-pencil-82913
12/05/2024, 9:19 PMnarrow-carpet-42783
12/05/2024, 9:25 PMcreamy-pencil-82913
12/05/2024, 9:31 PMnarrow-carpet-42783
12/05/2024, 9:31 PMnarrow-carpet-42783
12/05/2024, 9:32 PMcreamy-pencil-82913
12/05/2024, 9:32 PMcreamy-pencil-82913
12/05/2024, 9:32 PMcreamy-pencil-82913
12/05/2024, 9:32 PMcreamy-pencil-82913
12/05/2024, 9:32 PMcreamy-pencil-82913
12/05/2024, 9:33 PMcreamy-pencil-82913
12/05/2024, 9:33 PMnarrow-carpet-42783
12/05/2024, 9:34 PMnarrow-carpet-42783
12/05/2024, 9:35 PMnarrow-carpet-42783
12/05/2024, 9:37 PMcreamy-pencil-82913
12/05/2024, 9:37 PMcreamy-pencil-82913
12/05/2024, 9:37 PMnarrow-carpet-42783
12/05/2024, 9:38 PMnarrow-carpet-42783
12/05/2024, 9:39 PMcreamy-pencil-82913
12/05/2024, 9:39 PMcreamy-pencil-82913
12/05/2024, 9:39 PMnarrow-carpet-42783
12/05/2024, 9:39 PMcreamy-pencil-82913
12/05/2024, 9:40 PMnarrow-carpet-42783
12/05/2024, 9:41 PMcreamy-pencil-82913
12/05/2024, 9:41 PMnarrow-carpet-42783
12/05/2024, 9:43 PMnarrow-carpet-42783
12/05/2024, 9:44 PMcreamy-pencil-82913
12/05/2024, 9:46 PMcreamy-pencil-82913
12/05/2024, 9:47 PMcreamy-pencil-82913
12/05/2024, 9:47 PMnarrow-carpet-42783
12/05/2024, 9:48 PMcreamy-pencil-82913
12/05/2024, 9:49 PMcurl -vks <https://NODE-IP:32443>
from the node itself?narrow-carpet-42783
12/05/2024, 9:51 PM--connect-to $WEBSITE:443:NODE-IP:32443 --haproxy-protocol
so it actually works.narrow-carpet-42783
12/05/2024, 9:51 PMcreamy-pencil-82913
12/05/2024, 9:53 PMnarrow-carpet-42783
12/05/2024, 9:54 PMcreamy-pencil-82913
12/05/2024, 9:54 PMnarrow-carpet-42783
12/05/2024, 9:55 PMnarrow-carpet-42783
12/05/2024, 9:55 PMnarrow-carpet-42783
12/05/2024, 9:56 PMcreamy-pencil-82913
12/05/2024, 9:56 PMcreamy-pencil-82913
12/05/2024, 9:57 PMecho QUIT | openssl s_client -connect NODE-IP:32443 -servername WEBSITE
creamy-pencil-82913
12/05/2024, 9:57 PMnarrow-carpet-42783
12/05/2024, 9:59 PMnarrow-carpet-42783
12/05/2024, 10:00 PMopenssl
doesn’t speak proxy protocol, so that’s not going to work very well. In any case, I know proxy protocol isn’t the problem because I can use curl
to successfully complete the connection from the pod itself.creamy-pencil-82913
12/05/2024, 10:02 PMnarrow-carpet-42783
12/05/2024, 10:11 PMWEBSITE=<http://diaspora.koehn.com|diaspora.koehn.com> ; for i in $(seq 1 20) ; do curl -v --connect-to $WEBSITE:443:10.0.1.236:32443 --haproxy-protocol https://$WEBSITE/ > /dev/null ; done
I stopped it when the for
loop hung.narrow-carpet-42783
12/05/2024, 10:12 PMcreamy-pencil-82913
12/05/2024, 10:13 PM10.0.1.236.32443 > 10.0.1.1.12811: Flags [P.], cksum 0x21b3 (incorrect -> 0x784c)you’re sure you disabled checksum offload on all the nodes?
narrow-carpet-42783
12/05/2024, 10:16 PM/usr/sbin/ethtool -K flannel.1 tx-checksum-ip-generic off
creamy-pencil-82913
12/05/2024, 10:23 PMcreamy-pencil-82913
12/05/2024, 10:24 PMcreamy-pencil-82913
12/05/2024, 10:24 PMnarrow-carpet-42783
12/05/2024, 10:25 PMnarrow-carpet-42783
12/05/2024, 10:26 PMnarrow-carpet-42783
12/06/2024, 5:44 PMexternalTrafficPolicy
as you correctly pointed out.
The actual problem was because one of the nodes had a too-low kernel.threads-max
setting which sent nginx on a tailspin.
So many thanks again; I think it would have taken much, much longer without all your help!creamy-pencil-82913
12/06/2024, 5:50 PMnarrow-carpet-42783
12/06/2024, 5:51 PMnarrow-carpet-42783
12/06/2024, 5:52 PMnarrow-carpet-42783
12/06/2024, 6:40 PMcreamy-pencil-82913
12/06/2024, 6:43 PM