From 88ed5110bf7b843781f9bbdec147149e52bc54b2 Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Thu, 15 Jul 2021 18:20:38 -0500 Subject: [PATCH] fix: mount cni bin dir --- cns/azure-cns.yaml | 6 ++++++ test/integration/manifests/cns/daemonset.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/cns/azure-cns.yaml b/cns/azure-cns.yaml index 2879f67feb..6f5bd5370b 100644 --- a/cns/azure-cns.yaml +++ b/cns/azure-cns.yaml @@ -103,6 +103,8 @@ spec: mountPath: /var/lib/azure-network - name: cns-config mountPath: /etc/azure-cns + - name: cni-bin + mountPath: /opt/cni/bin - name: azure-vnet mountPath: /var/run/azure-vnet - name: legacy-cni-state @@ -133,6 +135,10 @@ spec: hostPath: path: /var/lib/azure-network type: DirectoryOrCreate + - name: cni-bin + hostPath: + path: /opt/cni/bin + type: Directory - name: azure-vnet hostPath: path: /var/run/azure-vnet diff --git a/test/integration/manifests/cns/daemonset.yaml b/test/integration/manifests/cns/daemonset.yaml index df45e56f8e..f6e155252b 100644 --- a/test/integration/manifests/cns/daemonset.yaml +++ b/test/integration/manifests/cns/daemonset.yaml @@ -51,6 +51,8 @@ spec: mountPath: /var/lib/azure-network - name: cns-config mountPath: /etc/azure-cns + - name: cni-bin + mountPath: /opt/cni/bin - name: azure-vnet mountPath: /var/run/azure-vnet - name: legacy-cni-state @@ -81,6 +83,10 @@ spec: hostPath: path: /var/lib/azure-network type: DirectoryOrCreate + - name: cni-bin + hostPath: + path: /opt/cni/bin + type: Directory - name: azure-vnet hostPath: path: /var/run/azure-vnet