2019-09-13 15:50:33 +08:00
|
|
|
{% for class_name, class_config in local_volume_provisioner_storage_classes.items() %}
|
2018-02-15 09:55:43 +08:00
|
|
|
---
|
|
|
|
apiVersion: storage.k8s.io/v1
|
|
|
|
kind: StorageClass
|
|
|
|
metadata:
|
2019-01-09 04:36:44 +08:00
|
|
|
name: {{ class_name }}
|
2018-02-15 09:55:43 +08:00
|
|
|
provisioner: kubernetes.io/no-provisioner
|
|
|
|
volumeBindingMode: WaitForFirstConsumer
|
2019-09-13 15:50:33 +08:00
|
|
|
{% if class_config.reclaim_policy is defined %}
|
|
|
|
reclaimPolicy: {{ class_config.reclaim_policy }}
|
|
|
|
{% endif %}
|
2019-01-09 04:36:44 +08:00
|
|
|
{% endfor %}
|