mirror of
https://github.com/h44z/wg-portal
synced 2025-06-26 18:16:21 +00:00
helm: replace instance label by release name instead of pod address
Signed-off-by: Dmytro Bondar <git@bonddim.com>
This commit is contained in:
parent
ba9b6c39e0
commit
29e1cc7848
@ -23,8 +23,13 @@ spec:
|
||||
{{- with .metricRelabelings }}
|
||||
metricRelabelings: {{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
relabelings:
|
||||
- action: replace
|
||||
sourceLabels:
|
||||
- __meta_kubernetes_pod_label_app_kubernetes_io_name
|
||||
targetLabel: instance
|
||||
{{- with .relabelings }}
|
||||
relabelings: {{- toYaml . | nindent 8 }}
|
||||
{{- toYamlPretty . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .scrapeTimeout }}
|
||||
scrapeTimeout: {{ . }}
|
||||
|
Loading…
Reference in New Issue
Block a user