[stable/node-problem-detector] Add relabelings to include node label (#17124)

Signed-off-by: Patrick Harböck <patrick.harboeck@tngtech.com>
This commit is contained in:
Pharb
2019-09-16 01:50:38 -07:00
committed by Kubernetes Prow Robot
parent 30601fd80b
commit 572b464ac1
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: node-problem-detector
version: "1.5.2"
version: "1.6.0"
appVersion: v0.7.0
home: https://github.com/kubernetes/node-problem-detector
description: Installs the node-problem-detector daemonset for monitoring extra attributes on nodes
@@ -23,4 +23,13 @@ spec:
- port: exporter
path: /metrics
interval: 60s
relabelings:
- action: replace
targetLabel: node
sourceLabels:
- __meta_kubernetes_pod_node_name
- action: replace
targetLabel: host_ip
sourceLabels:
- __meta_kubernetes_pod_host_ip
{{- end }}