We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ce9f5 commit 1ba8b81Copy full SHA for 1ba8b81
scripts/init.sh
@@ -28,6 +28,14 @@ HOST_IP=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/late
28
PRIMARY_IF=$(ip -4 -o a | grep "$HOST_IP" | awk '{print $2}')
29
sysctl -w "net.ipv4.conf.$PRIMARY_IF.rp_filter=2"
30
31
+# Configure tcp_early_demux to enable kubelet to pod-eni communication
32
+# https://lwn.net/Articles/503420/ for background
33
+if [ "${ENABLE_TCP_EARLY_DEMUX:-false}" == "true" ]; then
34
+ sysctl -w "net.ipv4.tcp_early_demux=1"
35
+else
36
+ sysctl -w "net.ipv4.tcp_early_demux=0"
37
+fi
38
+
39
cat "/proc/sys/net/ipv4/conf/$PRIMARY_IF/rp_filter"
40
41
echo "CNI init container done"
0 commit comments