Service Monitor: Reorder selector.
This commit is contained in:
parent
3c5cc7936d
commit
9b59df51ff
1 changed files with 4 additions and 4 deletions
|
@ -18,6 +18,10 @@ metadata:
|
||||||
annotations: {{ toYaml .Values.controller.metrics.serviceMonitor.annotations | nindent 4 }}
|
annotations: {{ toYaml .Values.controller.metrics.serviceMonitor.annotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
|
||||||
|
app.kubernetes.io/component: controller
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: {{ .Values.controller.metrics.portName }}
|
- port: {{ .Values.controller.metrics.portName }}
|
||||||
interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
|
interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
|
||||||
|
@ -43,8 +47,4 @@ spec:
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
|
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
|
||||||
targetLabels: {{ toYaml .Values.controller.metrics.serviceMonitor.targetLabels | nindent 2 }}
|
targetLabels: {{ toYaml .Values.controller.metrics.serviceMonitor.targetLabels | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
|
|
||||||
app.kubernetes.io/component: controller
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue