Browse Source

Use volume.beta.kubernetes.io annotation for storage-classes

Per Carlson 8 years ago
parent
commit
521ebaf9ee

+ 1 - 1
roles/openshift_logging_elasticsearch/tasks/main.yaml

@@ -217,7 +217,7 @@
     access_modes: "{{ openshift_logging_elasticsearch_pvc_access_modes | list }}"
     pv_selector: "{{ openshift_logging_elasticsearch_pvc_pv_selector }}"
     annotations:
-      volume.alpha.kubernetes.io/storage-class: "dynamic"
+      volume.beta.kubernetes.io/storage-class: "dynamic"
   when:
   - openshift_logging_elasticsearch_storage_type == "pvc"
   - openshift_logging_elasticsearch_pvc_dynamic

+ 1 - 1
roles/openshift_metrics/tasks/install_cassandra.yaml

@@ -50,7 +50,7 @@
     labels:
       metrics-infra: hawkular-cassandra
     annotations:
-      volume.alpha.kubernetes.io/storage-class: dynamic
+      volume.beta.kubernetes.io/storage-class: dynamic
     access_modes: "{{ openshift_metrics_cassandra_pvc_access | list }}"
     size: "{{ openshift_metrics_cassandra_pvc_size }}"
   with_sequence: count={{ openshift_metrics_cassandra_replicas }}