1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/monitoring-enabling-dynamically-provisioned-storage.adoc
2022-02-23 12:17:44 -05:00

28 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * monitoring/configuring-monitoring-stack.adoc
[id="enabling-dynamically-provisioned-storage_{context}"]
= Enabling dynamically-provisioned storage
Instead of statically-provisioned storage, you can use dynamically-provisioned storage.
.Procedure
. To enable dynamic storage for Prometheus and Alertmanager, set the following parameters to `true` in the Ansible inventory file:
+
* `openshift_cluster_monitoring_operator_prometheus_storage_enabled` (Default: false)
* `openshift_cluster_monitoring_operator_alertmanager_storage_enabled` (Default: false)
+
. Optional: After you enable dynamic storage, you can also set the `storageclass` for the persistent volume claim for each component in the following parameters in the Ansible inventory file:
+
* `openshift_cluster_monitoring_operator_prometheus_storage_class_name` (default: "")
* `openshift_cluster_monitoring_operator_alertmanager_storage_class_name` (default: "")
+
Each of these variables applies only if its corresponding `storage_enabled` variable is set to `true`.
[role="_additional-resources"]
.Additional resources
* See https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/[Dynamic Volume Provisioning] for details.