Skip to content

Commit

Permalink
Merge pull request #81 from Nordix/update_multus_pkg
Browse files Browse the repository at this point in the history
Update multus pkg to v4.1.0
  • Loading branch information
nephio-prow[bot] authored Aug 24, 2024
2 parents 0dac2f7 + 6cf0a07 commit 307a41d
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions infra/capi/multus/multus-daemonset-thick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ rules:
- pods/status
verbs:
- get
- list
- update
- watch
- apiGroups:
- ""
- events.k8s.io
Expand Down Expand Up @@ -111,13 +113,13 @@ data:
daemon-config.json: |
{
"chrootDir": "/hostroot",
"confDir": "/host/etc/cni/net.d",
"logLevel": "verbose",
"socketDir": "/host/run/multus/",
"cniVersion": "0.3.1",
"logLevel": "verbose",
"logToStderr": true,
"cniConfigDir": "/host/etc/cni/net.d",
"multusAutoconfigDir": "/host/etc/cni/net.d",
"multusConfigFile": "auto",
"multusAutoconfigDir": "/host/etc/cni/net.d"
"socketDir": "/host/run/multus/"
}
---
apiVersion: apps/v1
Expand Down Expand Up @@ -152,7 +154,7 @@ spec:
serviceAccountName: multus
containers:
- name: kube-multus
image: ghcr.io/k8snetworkplumbingwg/multus-cni:v4.0.2-thick
image: ghcr.io/k8snetworkplumbingwg/multus-cni:v4.1.0-thick
command: [ "/usr/src/multus-cni/bin/multus-daemon" ]
resources:
requests:
Expand All @@ -163,15 +165,22 @@ spec:
memory: "50Mi"
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: cni
mountPath: /host/etc/cni/net.d
# multus-daemon expects that cnibin path must be identical between pod and container host.
# e.g. if the cni bin is in '/opt/cni/bin' on the container host side, then it should be mount to '/opt/cni/bin' in multus-daemon,
# not to any other directory, like '/opt/bin' or '/usr/bin'.
- name: cnibin
mountPath: /opt/cni/bin
- name: host-run
mountPath: /host/run
- name: host-var-lib-cni-multus
mountPath: /var/lib/cni/multus
- name: host-var-lib-kubelet
mountPath: /var/lib/kubelet
mountPropagation: HostToContainer
- name: host-run-k8s-cni-cncf-io
mountPath: /run/k8s.cni.cncf.io
- name: host-run-netns
Expand All @@ -183,9 +192,14 @@ spec:
- name: hostroot
mountPath: /hostroot
mountPropagation: HostToContainer
env:
- name: MULTUS_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
initContainers:
- name: install-multus-binary
image: ghcr.io/k8snetworkplumbingwg/multus-cni:v4.0.2-thick
image: ghcr.io/k8snetworkplumbingwg/multus-cni:v4.1.0-thick
command:
- "cp"
- "/usr/src/multus-cni/bin/multus-shim"
Expand All @@ -196,6 +210,7 @@ spec:
memory: "15Mi"
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
Expand Down Expand Up @@ -231,4 +246,4 @@ spec:
path: /run/k8s.cni.cncf.io
- name: host-run-netns
hostPath:
path: /run/netns/
path: /run/netns/

0 comments on commit 307a41d

Please sign in to comment.