Skip to content

Commit 2368da2

Browse files
committed
use different workaround
1 parent 44f81c1 commit 2368da2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/e2e/data/cni/calico/calico.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ data:
4545
# Configure the MTU to use for workload interfaces and tunnels.
4646
# By default, MTU is auto-detected, and explicitly setting this field should not be required.
4747
# You can override auto-detection by providing a non-zero value.
48-
veth_mtu: "1360"
48+
veth_mtu: "0"
4949

5050
# The CNI network configuration to install on each node. The special
5151
# values in this config will be automatically populated.
@@ -4381,6 +4381,19 @@ spec:
43814381
terminationGracePeriodSeconds: 0
43824382
priorityClassName: system-node-critical
43834383
initContainers:
4384+
# This container sets a mtu so containers which are starting up before cni finished to setup get the right mtu set on their interfaces.
4385+
# This is required for the GCVE environment because we need a smaller mtu then what gets defaulted to otherwise and due to
4386+
# calico issue https://github.com/projectcalico/calico/issues/9718.
4387+
- name: set-mtu
4388+
image: quay.io/calico/node:v3.24.0
4389+
imagePullPolicy: IfNotPresent
4390+
command: ["/bin/bash", "-c", "echo 1340 > /var/lib/calico/mtu"]
4391+
volumeMounts:
4392+
- mountPath: /var/lib/calico
4393+
name: var-lib-calico
4394+
readOnly: false
4395+
securityContext:
4396+
privileged: true
43844397
# This container performs upgrade from host-local IPAM to calico-ipam.
43854398
# It can be deleted if this is a fresh installation, or if you have already
43864399
# upgraded to use calico-ipam.

0 commit comments

Comments
 (0)