Commit 0029342e by Frank Mai Committed by Alena Prokharchyk

Compatible with v1.16 deprecated labels

parent 43eafbf9
...@@ -71,6 +71,21 @@ spec: ...@@ -71,6 +71,21 @@ spec:
action: replace action: replace
regex: (.+) regex: (.+)
replacement: $1 replacement: $1
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
metricRelabelings:
- action: replace
regex: (.+)
replacement: $1
sourceLabels:
- container
targetLabel: container_name
- action: replace
regex: (.+)
replacement: $1
sourceLabels:
- pod
targetLabel: pod_name
{{- end }}
- port: https-metrics - port: https-metrics
scheme: https scheme: https
path: /metrics/resource/v1alpha1 path: /metrics/resource/v1alpha1
...@@ -128,6 +143,21 @@ spec: ...@@ -128,6 +143,21 @@ spec:
action: replace action: replace
regex: (.+) regex: (.+)
replacement: $1 replacement: $1
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
metricRelabelings:
- action: replace
regex: (.+)
replacement: $1
sourceLabels:
- container
targetLabel: container_name
- action: replace
regex: (.+)
replacement: $1
sourceLabels:
- pod
targetLabel: pod_name
{{- end }}
- port: http-metrics - port: http-metrics
path: /metrics/resource/v1alpha1 path: /metrics/resource/v1alpha1
honorLabels: true honorLabels: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment