Metrics port name (Helm) (#8665)
This commit is contained in:
parent
63edd3befd
commit
adeb84aa38
4 changed files with 5 additions and 5 deletions
|
@ -114,7 +114,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.metrics.enabled }}
|
{{- if .Values.controller.metrics.enabled }}
|
||||||
- name: metrics
|
- name: http-metrics
|
||||||
containerPort: {{ .Values.controller.metrics.port }}
|
containerPort: {{ .Values.controller.metrics.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -118,7 +118,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.metrics.enabled }}
|
{{- if .Values.controller.metrics.enabled }}
|
||||||
- name: metrics
|
- name: http-metrics
|
||||||
containerPort: {{ .Values.controller.metrics.port }}
|
containerPort: {{ .Values.controller.metrics.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -31,10 +31,10 @@ spec:
|
||||||
externalTrafficPolicy: {{ .Values.controller.metrics.service.externalTrafficPolicy }}
|
externalTrafficPolicy: {{ .Values.controller.metrics.service.externalTrafficPolicy }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: http-metrics
|
||||||
port: {{ .Values.controller.metrics.service.servicePort }}
|
port: {{ .Values.controller.metrics.service.servicePort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: metrics
|
targetPort: http-metrics
|
||||||
{{- $setNodePorts := (or (eq .Values.controller.metrics.service.type "NodePort") (eq .Values.controller.metrics.service.type "LoadBalancer")) }}
|
{{- $setNodePorts := (or (eq .Values.controller.metrics.service.type "NodePort") (eq .Values.controller.metrics.service.type "LoadBalancer")) }}
|
||||||
{{- if (and $setNodePorts (not (empty .Values.controller.metrics.service.nodePort))) }}
|
{{- if (and $setNodePorts (not (empty .Values.controller.metrics.service.nodePort))) }}
|
||||||
nodePort: {{ .Values.controller.metrics.service.nodePort }}
|
nodePort: {{ .Values.controller.metrics.service.nodePort }}
|
||||||
|
|
|
@ -14,7 +14,7 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: http-metrics
|
||||||
interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
|
interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.honorLabels }}
|
{{- if .Values.controller.metrics.serviceMonitor.honorLabels }}
|
||||||
honorLabels: true
|
honorLabels: true
|
||||||
|
|
Loading…
Reference in a new issue