[stable/kube-state-metrics] Add support for pod annotations (#2849)

This commit is contained in:
Terje Sannum
2017-12-07 21:57:31 +01:00
committed by Reinhard Nägele
parent 3a6ba4ff15
commit dd95f701ce
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ keywords:
- metric
- monitoring
- prometheus
version: 0.4.0
version: 0.5.0
appVersion: 1.1.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
+1
View File
@@ -21,6 +21,7 @@ $ helm install stable/kube-state-metrics
| `prometheusScrape` | Whether or not enable prom scrape | True |
| `rbac.create` | If true, create & use RBAC resources | False |
| `rbac.serviceAccountName` | ServiceAccount to be used (ignored if rbac.create=true) | default |
| `podAnnotations` | Annotations to be added to the pod | {} |
| `resources` | kube-state-metrics resource requests and limits | {} |
| `collectors.daemonsets` | Enable the daemonsets collector. | true |
| `collectors.deployments` | Enable the deployments collector. | true |
@@ -14,6 +14,10 @@ spec:
labels:
app: {{ template "kube-state-metrics.name" . }}
release: "{{ .Release.Name }}"
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
serviceAccountName: {{ if .Values.rbac.create }}{{ template "kube-state-metrics.fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
containers:
+3
View File
@@ -16,6 +16,9 @@ rbac:
# Ignored if rbac.create is true
serviceAccountName: default
# Annotations to be added to the pod
podAnnotations: {}
# Available collectors for kube-state-metrics. By default all available
# collectors are enabled.
collectors: