Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPDEV-96594] Changed MTU to 1430 #634

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions documentation/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ kubectl patch crontab/my-new-cron-object -p '{"metadata":{"finalizers":[]}}' --t
**Solution**: To change MTU size to required value run following command on any control-plane node:

```
# kubectl patch configmap/calico-config -n kube-system --type merge -p '{"data":{"veth_mtu": "1440"}}'
# kubectl patch configmap/calico-config -n kube-system --type merge -p '{"data":{"veth_mtu": "1430"}}'
```

where:
- **1440** is the size of MTU. For MTU 1450 on interface eth0 you should set MTU size 1430 for calico-config.
- **1430** is the size of MTU. For MTU 1450 on interface eth0 you should set MTU size 1430 for calico-config.


After updating the ConfigMap, perform a rolling restart of all calico/node pods. For example:
Expand Down
2 changes: 1 addition & 1 deletion kubemarine/resources/configurations/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ plugins:
mode: ipip
crossSubnet: true
natOutgoing: true
mtu: 1440
mtu: 1430
fullmesh: true
announceServices: false
defaultAsNumber: 64512
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"mtu": {
"type": "integer",
"default": 1440,
"default": 1430,
"description": "MTU size for Calico interface"
},
"fullmesh": {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/plugins/test_calico.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_common_enrichment(self):

def _test_common_calico_config(self, manifest: Manifest):
data = self.get_obj(manifest, "ConfigMap_calico-config")['data']
self.assertEqual('1440', data['veth_mtu'],
self.assertEqual('1430', data['veth_mtu'],
"Unexpected veth_mtu configuration in calico-config ConfigMap")

def _test_deployment_calico_kube_controllers(self, manifest: Manifest, k8s_version: str):
Expand Down
Loading