move flexvolume plugin directory creation to preinstall (#4999)

* move flexvolume plugin directory creation to preinstall

* changes per pr feedback
This commit is contained in:
Jeff Bornemann
2019-07-30 15:00:10 -04:00
committed by Kubernetes Prow Robot
parent fbbfff3795
commit da50ed0936
6 changed files with 15 additions and 3 deletions

View File

@@ -178,3 +178,13 @@
etcd_deployment_type: host
when:
- etcd_kubeadm_enabled
- name: check /usr readonly
stat:
path: "/usr"
register: usr
- name: set alternate flexvolume path
set_fact:
kubelet_flexvolumes_plugins_dir: /var/lib/kubelet/volumeplugins
when: not usr.stat.writeable