File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 45
45
# Configure the MTU to use for workload interfaces and tunnels.
46
46
# By default, MTU is auto-detected, and explicitly setting this field should not be required.
47
47
# You can override auto-detection by providing a non-zero value.
48
- veth_mtu : " 1360 "
48
+ veth_mtu : " 0 "
49
49
50
50
# The CNI network configuration to install on each node. The special
51
51
# values in this config will be automatically populated.
@@ -4381,6 +4381,19 @@ spec:
4381
4381
terminationGracePeriodSeconds : 0
4382
4382
priorityClassName : system-node-critical
4383
4383
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
4384
4397
# This container performs upgrade from host-local IPAM to calico-ipam.
4385
4398
# It can be deleted if this is a fresh installation, or if you have already
4386
4399
# upgraded to use calico-ipam.
You can’t perform that action at this time.
0 commit comments