Skip to content

Commit a6b0d46

Browse files
Claes MogrenSaranBalaji90
authored andcommitted
Ignore error on enabling TCP early demux for old kernels
1 parent 591c44b commit a6b0d46

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,11 @@ Type: Boolean as a String
431431

432432
Default: `false`
433433

434-
If `ENABLE_POD_ENI` is set to `true`, in order for the kubelet on the node to talk to pods using the per pod security group feature,
435-
`DISABLE_TCP_EARLY_DEMUX` should be set to `true`. This will increase the local TCP connection latency slightly, that is why it is not
436-
on by default. Details on why this is needed can be found in this [#1212 comment](https://github.com/aws/amazon-vpc-cni-k8s/pull/1212#issuecomment-693540666).
437-
434+
If `ENABLE_POD_ENI` is set to `true`, in order for the kubelet on the node to connect via TCP to pods that are using
435+
per pod security groups, `DISABLE_TCP_EARLY_DEMUX` should be set to `true`. This will increase the local TCP connection
436+
latency slightly, that is why it is not on by default. Details on why this is needed can be found in
437+
this [#1212 comment](https://github.com/aws/amazon-vpc-cni-k8s/pull/1212#issuecomment-693540666).
438+
To use this setting, a Linux kernel version of at least 4.6 is needed on the worker node.
438439

439440
### ENI tags related to Allocation
440441

scripts/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cat "/proc/sys/net/ipv4/conf/$PRIMARY_IF/rp_filter"
3434
if [ "${DISABLE_TCP_EARLY_DEMUX:-false}" == "true" ]; then
3535
sysctl -w "net.ipv4.tcp_early_demux=0"
3636
else
37-
sysctl -w "net.ipv4.tcp_early_demux=1"
37+
sysctl -e -w "net.ipv4.tcp_early_demux=1"
3838
fi
3939

4040
echo "CNI init container done"

0 commit comments

Comments
 (0)