{{- if .Values.multus.enabled }} apiVersion: apps/v1 kind: DaemonSet metadata: name: kube-multus-ds namespace: kube-system labels: {{- include "kubezero-lib.labels" . | nindent 4 }} spec: selector: matchLabels: {{- include "kubezero-lib.selectorLabels" . | nindent 6 }} updateStrategy: type: RollingUpdate template: metadata: labels: {{- include "kubezero-lib.labels" . | nindent 8 }} spec: hostNetwork: true tolerations: - operator: Exists effect: NoSchedule - operator: Exists effect: NoExecute serviceAccountName: multus containers: - name: kube-multus image: ghcr.io/k8snetworkplumbingwg/multus-cni:{{ .Values.multus.tag }} command: ["/entrypoint.sh"] args: - "--multus-conf-file=/tmp/multus-conf/00-multus.conf" - "--rename-conf-file=false" - "--cni-bin-dir=/host/usr/libexec/cni" - "--cni-version=0.3.1" resources: requests: cpu: "100m" memory: "50Mi" limits: cpu: "100m" memory: "50Mi" securityContext: privileged: true capabilities: add: ["SYS_ADMIN"] volumeMounts: - name: run mountPath: /run - name: cni mountPath: /host/etc/cni/net.d - name: cnibin mountPath: /host/usr/libexec/cni - name: multus-cfg mountPath: /tmp/multus-conf terminationGracePeriodSeconds: 10 volumes: - name: run hostPath: path: /run - name: cni hostPath: path: /etc/cni/net.d - name: cnibin hostPath: path: /usr/libexec/cni - name: multus-cfg configMap: name: multus-cni-config items: - key: cni-conf.json path: 00-multus.conf {{- end }}