mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-12 03:47:38 -02:30
Merge pull request #2274 from mirwan/local_volume_provisioner_configmap_in_daemonset
Local volume provisioner fixes
This commit is contained in:
@@ -7,7 +7,8 @@ metadata:
|
||||
name: local-volume-config
|
||||
namespace: {{ system_namespace }}
|
||||
data:
|
||||
storageClassMap: |
|
||||
local-storage:
|
||||
hostDir: "{{ local_volume_base_dir }}"
|
||||
mountDir: "/mnt/local-storage/"
|
||||
"{{ local_volume_storage_class }}": |
|
||||
{
|
||||
"hostDir": "{{ local_volume_base_dir }}",
|
||||
"mountDir": "{{ local_volume_mount_dir }}"
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
@@ -32,6 +32,8 @@ spec:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: metadata.namespace
|
||||
- name: VOLUME_CONFIG_NAME
|
||||
value: "local-volume-config"
|
||||
volumes:
|
||||
- name: discovery-vol
|
||||
hostPath:
|
||||
|
||||
Reference in New Issue
Block a user