Skip to content

Commit 9a699d7

Browse files
authored
Allow specifying mtu for kubeovn daemonset (#487)
Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new patch application step in the update process for KubeOVN. - Enhanced flexibility in the `kube-ovn-cni` configuration by allowing users to specify the Maximum Transmission Unit (MTU) for improved network performance. - **Bug Fixes** - Applied a patch to ensure the new MTU configuration is properly integrated into the deployment process. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent df448b9 commit 9a699d7

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/system/kubeovn/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ update:
1111
curl -sSL https://github.com/kubeovn/kube-ovn/archive/refs/heads/master.tar.gz | \
1212
tar xzvf - --strip 1 kube-ovn-master/charts
1313
patch --no-backup-if-mismatch -p4 < patches/cozyconfig.diff
14+
patch --no-backup-if-mismatch -p4 < patches/mtu.diff
1415

1516
image:
1617
docker buildx build images/kubeovn \

packages/system/kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ spec:
7676
- --kubelet-dir={{ .Values.kubelet_conf.KUBELET_DIR }}
7777
- --enable-tproxy={{ .Values.func.ENABLE_TPROXY }}
7878
- --ovs-vsctl-concurrency={{ .Values.performance.OVS_VSCTL_CONCURRENCY }}
79+
{{- with .Values.mtu }}
80+
- --mtu={{ . }}
81+
{{- end }}
7982
securityContext:
8083
runAsUser: 0
8184
privileged: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/packages/system/kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml b/packages/system/kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml
2+
index c6834ef..423f66b 100644
3+
--- a/packages/system/kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml
4+
+++ b/packages/system/kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml
5+
@@ -76,6 +76,9 @@ spec:
6+
- --kubelet-dir={{ .Values.kubelet_conf.KUBELET_DIR }}
7+
- --enable-tproxy={{ .Values.func.ENABLE_TPROXY }}
8+
- --ovs-vsctl-concurrency={{ .Values.performance.OVS_VSCTL_CONCURRENCY }}
9+
+ {{- with .Values.mtu }}
10+
+ - --mtu={{ . }}
11+
+ {{- end }}
12+
securityContext:
13+
runAsUser: 0
14+
privileged: true

0 commit comments

Comments
 (0)