Skip to content

Commit

Permalink
multus: set MULTUS_NODE_NAME to filter pods to local node
Browse files Browse the repository at this point in the history
This allows multus to set an apiserver filter to only watch pods
on its own node. Should reduce memory usage as multus doesn't
care about pods on other nodes.

Clusters with ~60,000 pods show multus using around 1.8G of RSS
which seems fairly unecessary.
  • Loading branch information
dcbw authored and openshift-cherrypick-robot committed Sep 21, 2023
1 parent 32e37b1 commit 57c781c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindata/network/multus/multus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ spec:
value: "{{.KUBERNETES_SERVICE_PORT}}"
- name: KUBERNETES_SERVICE_HOST
value: "{{.KUBERNETES_SERVICE_HOST}}"
- name: MULTUS_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
{{ if .HTTP_PROXY }}
- name: "HTTP_PROXY"
value: "{{ .HTTP_PROXY}}"
Expand Down

0 comments on commit 57c781c

Please sign in to comment.