[stable/prometheus-adapter] Add podLabels support (#21658)

Signed-off-by: Ondrej Homolka <ondrej.homolka@gmail.com>
This commit is contained in:
hmlkao
2020-03-27 07:36:24 -07:00
committed by GitHub
parent cd9513e07a
commit ef70d277fc
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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 }}
+3
View File
@@ -123,6 +123,9 @@ extraVolumeMounts: []
tolerations: []
# Labels added to the pod
podLabels: {}
# Annotations added to the pod
podAnnotations: {}