mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus-adapter] Add podLabels support (#21658)
Signed-off-by: Ondrej Homolka <ondrej.homolka@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: prometheus-adapter
|
||||
version: 2.1.3
|
||||
version: 2.2.0
|
||||
appVersion: v0.6.0
|
||||
description: A Helm chart for k8s prometheus adapter
|
||||
home: https://github.com/DirectXMan12/k8s-prometheus-adapter
|
||||
|
||||
@@ -118,6 +118,7 @@ The following table lists the configurable parameters of the Prometheus Adapter
|
||||
| `logLevel` | Log level | `4` |
|
||||
| `metricsRelistInterval` | Interval at which to re-list the set of all available metrics from Prometheus | `1m` |
|
||||
| `nodeSelector` | Node labels for pod assignment | `{}` |
|
||||
| `podLabels` | Labels to add to the pod | `{}` |
|
||||
| `podAnnotations` | Annotations to add to the pod | `{}` |
|
||||
| `priorityClassName` | Pod priority | `` |
|
||||
| `prometheus.url` | Url of where we can find the Prometheus service | `http://prometheus.default.svc` |
|
||||
|
||||
@@ -20,6 +20,9 @@ spec:
|
||||
chart: {{ template "k8s-prometheus-adapter.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.podLabels }}
|
||||
{{- toYaml . | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
name: {{ template "k8s-prometheus-adapter.name" . }}
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/custom-metrics-configmap.yaml") . | sha256sum }}
|
||||
|
||||
@@ -123,6 +123,9 @@ extraVolumeMounts: []
|
||||
|
||||
tolerations: []
|
||||
|
||||
# Labels added to the pod
|
||||
podLabels: {}
|
||||
|
||||
# Annotations added to the pod
|
||||
podAnnotations: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user