Merge pull request #10277 from rook/mergify/bp/release-1.9/pr-10274
helm: Only copy relevant monitoring settings (backport #10274)
This commit is contained in:
3 files changed
+15
-1
No files matched your search
@@ -4,7 +4,16 @@ kind: CephCluster
|
||||
metadata:
|
||||
name: {{ default .Release.Namespace .Values.clusterName }}
|
||||
spec:
|
||||
{{- if .Values.monitoring }}
|
||||
monitoring:
|
||||
{{ toYaml .Values.monitoring | indent 4 }}
|
||||
enabled: {{ .Values.monitoring.enabled | default false }}
|
||||
{{- if .Values.monitoring.externalMgrEndpoints }}
|
||||
externalMgrEndpoints:
|
||||
{{ toYaml .Values.monitoring.externalMgrEndpoints | indent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.monitoring.externalMgrPrometheusPort }}
|
||||
externalMgrPrometheusPort: {{ toYaml .Values.monitoring.externalMgrPrometheusPort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{ toYaml .Values.cephClusterSpec | indent 2 }}
|
||||
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.monitoring }}
|
||||
{{- if .Values.monitoring.createPrometheusRules }}
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
@@ -29,3 +30,4 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -44,6 +44,9 @@ monitoring:
|
||||
# If you have multiple rook-ceph clusters in the same k8s cluster, choose the same namespace (ideally, namespace with prometheus
|
||||
# deployed) to set rulesNamespace for all the clusters. Otherwise, you will get duplicate alerts with multiple alert definitions.
|
||||
rulesNamespaceOverride:
|
||||
# Monitoring settings for external clusters:
|
||||
# externalMgrEndpoints: <list of endpoints>
|
||||
# externalMgrPrometheusPort: <port>
|
||||
|
||||
# If true, create & use PSP resources. Set this to the same value as the rook-ceph chart.
|
||||
pspEnable: true
|
||||
|
||||
Reference in new issue
Block a user