Skip to content

Commit ef66004

Browse files
authored
fix: mount cni bin dir (Azure#937)
1 parent 87e4f91 commit ef66004

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cns/azure-cns.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ spec:
103103
mountPath: /var/lib/azure-network
104104
- name: cns-config
105105
mountPath: /etc/azure-cns
106+
- name: cni-bin
107+
mountPath: /opt/cni/bin
106108
- name: azure-vnet
107109
mountPath: /var/run/azure-vnet
108110
- name: legacy-cni-state
@@ -133,6 +135,10 @@ spec:
133135
hostPath:
134136
path: /var/lib/azure-network
135137
type: DirectoryOrCreate
138+
- name: cni-bin
139+
hostPath:
140+
path: /opt/cni/bin
141+
type: Directory
136142
- name: azure-vnet
137143
hostPath:
138144
path: /var/run/azure-vnet

test/integration/manifests/cns/daemonset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ spec:
5151
mountPath: /var/lib/azure-network
5252
- name: cns-config
5353
mountPath: /etc/azure-cns
54+
- name: cni-bin
55+
mountPath: /opt/cni/bin
5456
- name: azure-vnet
5557
mountPath: /var/run/azure-vnet
5658
- name: legacy-cni-state
@@ -81,6 +83,10 @@ spec:
8183
hostPath:
8284
path: /var/lib/azure-network
8385
type: DirectoryOrCreate
86+
- name: cni-bin
87+
hostPath:
88+
path: /opt/cni/bin
89+
type: Directory
8490
- name: azure-vnet
8591
hostPath:
8692
path: /var/run/azure-vnet

0 commit comments

Comments
 (0)