Remove Prometheus scrape annotations when podmonitors are enabled (#590)
This commit is contained in:
parent
6fe37a373f
commit
75119dd6d7
@ -43,8 +43,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.autorecovery.component }}
|
component: {{ .Values.autorecovery.component }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.autorecovery.podMonitor.enabled }}
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "{{ .Values.autorecovery.ports.http }}"
|
prometheus.io/port: "{{ .Values.autorecovery.ports.http }}"
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.autorecovery.restartPodsOnConfigMapChange }}
|
{{- if .Values.autorecovery.restartPodsOnConfigMapChange }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/autorecovery-configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/autorecovery-configmap.yaml") . | sha256sum }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -42,8 +42,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.bookkeeper.component }}
|
component: {{ .Values.bookkeeper.component }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.bookkeeper.podMonitor.enabled }}
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "{{ .Values.bookkeeper.ports.http }}"
|
prometheus.io/port: "{{ .Values.bookkeeper.ports.http }}"
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.bookkeeper.restartPodsOnConfigMapChange }}
|
{{- if .Values.bookkeeper.restartPodsOnConfigMapChange }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/bookkeeper-configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/bookkeeper-configmap.yaml") . | sha256sum }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -62,8 +62,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.broker.component }}
|
component: {{ .Values.broker.component }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.broker.podMonitor.enabled }}
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "{{ .Values.broker.ports.http }}"
|
prometheus.io/port: "{{ .Values.broker.ports.http }}"
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.broker.restartPodsOnConfigMapChange }}
|
{{- if .Values.broker.restartPodsOnConfigMapChange }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/broker-configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/broker-configmap.yaml") . | sha256sum }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -40,8 +40,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.oxia.component }}-coordinator
|
component: {{ .Values.oxia.component }}-coordinator
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.oxia.coordinator.podMonitor.enabled }}
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "{{ .Values.oxia.coordinator.ports.metrics }}"
|
prometheus.io/port: "{{ .Values.oxia.coordinator.ports.metrics }}"
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.oxia.server.nodeSelector }}
|
{{- if .Values.oxia.server.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
|||||||
@ -40,8 +40,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.oxia.component }}-server
|
component: {{ .Values.oxia.component }}-server
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.oxia.server.podMonitor.enabled }}
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "{{ .Values.oxia.server.ports.metrics }}"
|
prometheus.io/port: "{{ .Values.oxia.server.ports.metrics }}"
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.oxia.server.nodeSelector }}
|
{{- if .Values.oxia.server.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
|||||||
@ -44,8 +44,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.proxy.component }}
|
component: {{ .Values.proxy.component }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.proxy.podMonitor.enabled }}
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "{{ .Values.proxy.ports.containerPorts.http }}"
|
prometheus.io/port: "{{ .Values.proxy.ports.containerPorts.http }}"
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.proxy.restartPodsOnConfigMapChange }}
|
{{- if .Values.proxy.restartPodsOnConfigMapChange }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/proxy-configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/proxy-configmap.yaml") . | sha256sum }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -43,6 +43,10 @@ spec:
|
|||||||
{{- include "pulsar.template.labels" . | nindent 8 }}
|
{{- include "pulsar.template.labels" . | nindent 8 }}
|
||||||
component: {{ .Values.zookeeper.component }}
|
component: {{ .Values.zookeeper.component }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.zookeeper.podMonitor.enabled }}
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
prometheus.io/port: "{{ .Values.zookeeper.ports.http }}"
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.zookeeper.restartPodsOnConfigMapChange }}
|
{{- if .Values.zookeeper.restartPodsOnConfigMapChange }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/zookeeper-configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/zookeeper-configmap.yaml") . | sha256sum }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user