storageClass name template as suggested by @eyeofthefrog

This commit is contained in:
Erwan Miran 2018-02-09 00:11:07 +01:00
parent e1aaef7d4d
commit e9a676951b
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@ metadata:
name: local-volume-config name: local-volume-config
namespace: {{ system_namespace }} namespace: {{ system_namespace }}
data: data:
"local-storage": | "{{ local_volume_storage_class }}": |
{ {
"hostDir": "{{ local_volume_base_dir }}", "hostDir": "{{ local_volume_base_dir }}",
"mountDir": "{{ local_volume_mount_dir }}" "mountDir": "{{ local_volume_mount_dir }}"

View file

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