projectcalico / calico

Cloud native networking and network security
https://docs.tigera.io/calico/latest/about/
Apache License 2.0
6.01k stars 1.34k forks source link

How to disable tx-sctp-segmentation for all Pods with calico CNI #6756

Open Anil-YadavK8s opened 2 years ago

Anil-YadavK8s commented 2 years ago

We are using Calico as CNI and IPAM on top of OVS-Bride. We want to disable tx-sctp-segmentation on all Pods interface. We disabled tx-sctp-segmentation via ethtool on calico CNI interface but same setting was not propagated to a Pod interface.

Expected Behavior

Current Behavior

worker1~> sudo ethtool -k ccd_int | grep -i tx-sctp-segmentation tx-sctp-segmentation: on

worker1:~> sudo ethtool -K ccd_int tx-sctp-segmentation off

worker1~> sudo ethtool -k ccd_int | grep -i tx-sctp-segmentation tx-sctp-segmentation: off

Restart calico pod / test pod - still tx-sctp-segemention was On on calico-XX interface on Pod

worker1:~> sudo ethtool -k calic048fd9a750 | grep tx-sctp-segmentation tx-sctp-segmentation: on

worker1~> sudo ethtool -k ccd_int | grep -i tx-sctp-segmentation tx-sctp-segmentation: off

Possible Solution

Context

Is there any parameter exposed by calico IPAM to disable tx-sctp-segmentation on all Pods.

Your Environment

caseydavenport commented 2 years ago

There's not currently any config option built in to Calico to do this as far as I'm aware, although it might be just a small enhancement to configure it. Is there a sysctl option for this?

calico CNI interface

What do you mean by the Calico CNI interface?

Anil-YadavK8s commented 2 years ago

@caseydavenport Thanks for the reply.

To achieve this we have to run container (a init container) with root privilege and modify the pod interface via script which performs "ethtool -K interface-name tx-sctp segmentation off"

Running pod with root-previlege is a security concern which we want to avoid it.

ismaell commented 7 months ago

Why is this needed?