Hello,
I've installed ClusterMonitoringOperator (CMO) from openshift-ansible. It works great!
Now I have to add some custom configurations :
1. labels in PVCs to select labeled PVs
2. reconfigure Prometheus and Alertmanager statefullsets (antiaffinity to ensure placing in multiple AWS availibility zones)
3. reconfigure Prometheus CRD configuration (serviceMonitorSelector, ruleSelector, serviceMonitorNamespaceSelector, ruleNamespaceSelector, ...)
Currently I'm trying to achieve that by additional post-installation tasks in ansible playbook. I'm trying to patch all objects with my custom configuration and reload them one more time.
My questions are:
A. I need to stop reloading to default. I was trying to set "paused: true" parameter in PrometheusOperator and Prometheus itself, no success up to now.
I'm confused with documentatiotion [1]:
"It is possible to pause this behavior, by setting the paused field in the AppVersion called openshift-monitoring"
Where (on which component of CMO) should "paused" filed be configured to stop reloading Prometheus?
B. currently I can change volumeClaimTempalte before starting playbook, by adding/modyfing particular lines before running default playbook to address configurations described in points 1 and 2. is there more elegant way to do that?
C. how can I change configuration with configmap/secrets in scope of CMO ? It's mentioned in Prometheus-Operator docs [3]. I assume I should have paused:true parameter for entire CMO and then somehow replace secrets? It could be more elegant solution than patching objects, but default re-loader is blocking me from further testing.
D. CMO was officially released few days ago in Openshift 3.11 release, documentation [2] is still not so detailed in terms of custom configuration, it is only mentioned that:
"Beyond those explicit configuration options, it is possible to inject additional configuration into the stack. However this is unsupported, as configuration paradigms might change(..)"
Any instructions how to "inject additional configurations" will be helpful. If you could provide links to examples with custom configurations similar to my requirements, they will be greatly appreciated as well.
I hope that is correct mailing group that I'm using currently to address my questions.
Regards,
Dominik
Links: