diff --git a/deploy/chart/local-path-provisioner/templates/storageclass.yaml b/deploy/chart/local-path-provisioner/templates/storageclass.yaml index 48f3fd37b97d0cc490738f77d981d60a17757edc..a8d0e14f36237869f9908a04179e41314164f099 100644 --- a/deploy/chart/local-path-provisioner/templates/storageclass.yaml +++ b/deploy/chart/local-path-provisioner/templates/storageclass.yaml @@ -10,7 +10,7 @@ metadata: storageclass.kubernetes.io/is-default-class: "true" {{- end }} provisioner: {{ template "local-path-provisioner.provisionerName" . }} -volumeBindingMode: WaitForFirstConsumer +volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }} reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }} allowVolumeExpansion: true {{- end }} diff --git a/deploy/chart/local-path-provisioner/values.yaml b/deploy/chart/local-path-provisioner/values.yaml index b4827cdd33e2571492fed8d5206994052429d989..61b6fe82b0662abd0c0e79ecc3331efc5b961b6d 100644 --- a/deploy/chart/local-path-provisioner/values.yaml +++ b/deploy/chart/local-path-provisioner/values.yaml @@ -41,6 +41,9 @@ storageClass: ## ReclaimPolicy field of the class, which can be either Delete or Retain reclaimPolicy: Delete + ## volumeBindingMode field controls when volume binding and dynamic provisioning should occur, can be "Immediate" or "WaitForFirstConsumer" + volumeBindingMode: WaitForFirstConsumer + # nodePathMap is the place user can customize where to store the data on each node. # 1. If one node is not listed on the nodePathMap, and Kubernetes wants to create volume on it, the paths specified in # DEFAULT_PATH_FOR_NON_LISTED_NODES will be used for provisioning.