diff --git a/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml b/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml index 74c352026..57babea97 100644 --- a/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml @@ -5,6 +5,13 @@ metadata: name: {{ default .Release.Namespace .Values.clusterName }} spec: 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 }} {{ toYaml .Values.cephClusterSpec | indent 2 }} diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index 287031407..378257509 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -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: + # externalMgrPrometheusPort: # If true, create & use PSP resources. Set this to the same value as the rook-ceph chart. pspEnable: true