Skip to content

Commit 1cc527f

Browse files
author
Wei Tie
committed
Copy netctl to PATH
1 parent 358b9be commit 1cc527f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install/k8s/contiv/contiv-base.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ spec:
297297
- mountPath: /var/contiv
298298
name: var-contiv
299299
readOnly: false
300+
- name: contiv-netctl
301+
image: contiv/netplugin:latest
302+
command: ["cp", "/contiv/bin/netctl", "/usr/local/sbin/netctl"]
303+
volumeMounts:
304+
- mountPath: /usr/local/sbin/
305+
name: usr-local-sbin
306+
readOnly: false
300307
containers:
301308
- name: contiv-netmaster
302309
image: contiv/netplugin:latest
@@ -332,6 +339,9 @@ spec:
332339
- name: var-contiv
333340
hostPath:
334341
path: /var/contiv
342+
- name: usr-local-sbin
343+
hostPath:
344+
path: /usr/local/sbin/
335345

336346
---
337347

0 commit comments

Comments
 (0)