[multus] Increase memory limit (#1773)

## What this PR does
Increases multus memory limit.
Based on multiple community reports stating that multus tend to consume
a lot of memory during startup after a node reboot.

### Release note
```release-note
Multus memory limit increased.
```
This commit is contained in:
Nikita authored and Andrei Kvapil committed 2026-01-09 14:53:59 +01:00
1 parent f3c178e30d
commit 12023b7f02
3 files changed
+52 -4

No files matched your search

+2 -3
View File
@@ -9,6 +9,5 @@ update:
mkdir templates
$(eval RELEASE := $(shell curl -s https://api.github.com/repos/k8snetworkplumbingwg/multus-cni/releases/latest?per_page=1 | jq -r '.name'))
wget -q https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/refs/tags/$(RELEASE)/deployments/multus-daemonset-thick.yml -O templates/multus-daemonset-thick.yml
sed -i 's/namespace: kube-system/namespace: $(NAMESPACE)/;/multus-cni/s/snapshot-thick/$(RELEASE)-thick/' templates/multus-daemonset-thick.yml && \
sed -i '/name:/s/kube-multus-ds/cozy-multus/;/memory:/s/"50Mi"/"100Mi"/' templates/multus-daemonset-thick.yml
sed -i '/multus-cni/s/snapshot-thick/$(RELEASE)-thick/' templates/multus-daemonset-thick.yml && \
patch --no-backup-if-mismatch -p4 < patches/customize-deployment.patch
@@ -0,0 +1,49 @@
--- a/packages/system/multus/templates/multus-daemonset-thick.yml
+++ b/packages/system/multus/templates/multus-daemonset-thick.yml
@@ -93,19 +93,19 @@ roleRef:
subjects:
- kind: ServiceAccount
name: multus
- namespace: kube-system
+ namespace: cozy-multus
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: multus
- namespace: kube-system
+ namespace: cozy-multus
---
kind: ConfigMap
apiVersion: v1
metadata:
name: multus-daemon-config
- namespace: kube-system
+ namespace: cozy-multus
labels:
tier: node
app: multus
@@ -125,8 +125,8 @@ data:
apiVersion: apps/v1
kind: DaemonSet
metadata:
- name: kube-multus-ds
- namespace: kube-system
+ name: cozy-multus
+ namespace: cozy-multus
labels:
tier: node
app: multus
@@ -159,10 +159,10 @@ spec:
resources:
requests:
cpu: "100m"
- memory: "50Mi"
+ memory: "100Mi"
limits:
cpu: "100m"
- memory: "50Mi"
+ memory: "900Mi"
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
@@ -162,7 +162,7 @@ spec:
memory: "100Mi"
limits:
cpu: "100m"
memory: "300Mi"
memory: "900Mi"
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError