-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Change the instructions in favor of local storage for Prometheus and AM #16586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,15 +2,13 @@ | |
| // | ||
| // * monitoring/cluster-monitoring/configuring-the-monitoring-stack.adoc | ||
|
|
||
| [id="configuring-a-persistent-volume-claim_{context}"] | ||
| = Configuring a persistent volume claim | ||
| [id="configuring-a-local-persistent-volume-claim_{context}"] | ||
| = Configuring a local persistent volume claim | ||
|
|
||
| For the Prometheus or Alertmanager to use a persistent volume (PV), you first must configure a persistent volume claim (PVC). | ||
|
|
||
| .Prerequisites | ||
|
|
||
| * Make sure you have the necessary storage class configured. | ||
| // FIXME add link, potentially https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.3/html/container-native_storage_for_openshift_container_platform/block_storage | ||
| * Make sure you have the `cluster-monitoring-config` ConfigMap object with the `data/config.yaml` section. | ||
|
|
||
| .Procedure | ||
|
|
@@ -40,12 +38,12 @@ data: | |
| storageClassName: *_storage class_* | ||
| resources: | ||
| requests: | ||
| storage: *_40Gi_* | ||
| storage: *_amount of storage_* | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We aren't using this styling for our YAML annotations (https://github.com/openshift/openshift-docs/blob/master/contributing_to_docs/doc_guidelines.adoc#quick-markup-reference).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, implemented this in #16978. |
||
| ---- | ||
| + | ||
| See the link:https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims[Kubernetes documentation on PersistentVolumeClaims] for information on how to specify `volumeClaimTemplate`. | ||
| + | ||
| For example, to configure a PVC that claims any configured {product-title} block PV as a persistent storage for Prometheus, use: | ||
| For example, to configure a PVC that claims local persistent storage for Prometheus, use: | ||
| + | ||
| [source,yaml,subs=quotes] | ||
| ---- | ||
|
|
@@ -59,15 +57,17 @@ data: | |
| *prometheusK8s*: | ||
| volumeClaimTemplate: | ||
| metadata: | ||
| name: *my-prometheus-claim* | ||
| name: *localpvc* | ||
| spec: | ||
| storageClassName: *gluster-block* | ||
| storageClassName: *local-storage* | ||
| resources: | ||
| requests: | ||
| storage: *40Gi* | ||
| ---- | ||
| + | ||
| And to configure a PVC that claims any configured {product-title} block PV as a persistent storage for Alertmanager, you can use: | ||
| In the above example, the storage class created by the Local Storage Operator is called `local-storage`. | ||
| + | ||
| To configure a PVC that claims local persistent storage for Alertmanager, use: | ||
| + | ||
| [source,yaml,subs=quotes] | ||
| ---- | ||
|
|
@@ -81,9 +81,9 @@ data: | |
| *alertmanagerMain*: | ||
| volumeClaimTemplate: | ||
| metadata: | ||
| name: *my-alertmanager-claim* | ||
| name: *localpvc* | ||
| spec: | ||
| storageClassName: *gluster-block* | ||
| storageClassName: *local-storage* | ||
| resources: | ||
| requests: | ||
| storage: *40Gi* | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.