MountDir in configmap and daemonset must be the same

This commit is contained in:
Erwan Miran 2018-02-07 18:42:42 +01:00
parent 44eb03f78a
commit abfb147292
3 changed files with 3 additions and 2 deletions

View file

@ -10,5 +10,5 @@ data:
"local-storage": |
{
"hostDir": "{{ local_volume_base_dir }}",
"mountDir": "/mnt/local-storage/"
"mountDir": "{{ local_volume_mount_dir }}"
}

View file

@ -18,7 +18,7 @@ spec:
privileged: true
volumeMounts:
- name: discovery-vol
mountPath: "/local-disks"
mountPath: "/{{ local_volume_mount_dir }}"
- name: local-volume-config
mountPath: /etc/provisioner/config/
env:

View file

@ -169,6 +169,7 @@ persistent_volumes_enabled: false
# Base path for local volume provisioner addon
local_volume_base_dir: /mnt/disks
local_volume_mount_dir: /local-disks
## When OpenStack is used, Cinder version can be explicitly specified if autodetection fails (Fixed in 1.9: https://github.com/kubernetes/kubernetes/issues/50461)
# openstack_blockstorage_version: "v1/v2/auto (default)"