Skip to content

Commit 2ecd4f4

Browse files
Merge pull request #1445 from Untersander/fix/use-multus-install
Fix node reboot issue by using install_multus bin to update cni file
2 parents cdf603f + 8cf05da commit 2ecd4f4

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

deployments/multus-daemonset-thick.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,11 @@ spec:
203203
- name: install-multus-binary
204204
image: ghcr.io/k8snetworkplumbingwg/multus-cni:snapshot-thick
205205
command:
206-
- "sh"
207-
- "-c"
208-
- "cp /usr/src/multus-cni/bin/multus-shim /host/opt/cni/bin/multus-shim && cp /usr/src/multus-cni/bin/passthru /host/opt/cni/bin/passthru"
206+
- "/usr/src/multus-cni/bin/install_multus"
207+
- "-d"
208+
- "/host/opt/cni/bin"
209+
- "-t"
210+
- "thick"
209211
resources:
210212
requests:
211213
cpu: "10m"

e2e/setup_cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ sleep 1
102102
kubectl -n kube-system wait --for=condition=ready -l name=multus pod --timeout=300s
103103
kubectl create -f yamls/cni-install.yml
104104
sleep 1
105-
kubectl -n kube-system wait --for=condition=ready -l name=cni-plugins pod --timeout=300s
105+
kubectl -n kube-system wait --for=condition=ready -l name=cni-plugins pod --timeout=400s

e2e/templates/multus-daemonset-thick.yml.j2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ spec:
170170
- name: install-multus-shim
171171
image: localhost:5000/multus:e2e
172172
command:
173-
- "sh"
174-
- "-c"
175-
- "cp /usr/src/multus-cni/bin/multus-shim /host/opt/cni/bin/multus-shim && cp /usr/src/multus-cni/bin/passthru /host/opt/cni/bin/passthru"
173+
- "/usr/src/multus-cni/bin/install_multus"
174+
- "-d"
175+
- "/host/opt/cni/bin"
176+
- "-t"
177+
- "thick"
176178
resources:
177179
requests:
178180
cpu: "10m"

0 commit comments

Comments
 (0)