mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/kube-state-metrics] Add support for pod annotations (#2849)
This commit is contained in:
committed by
Reinhard Nägele
parent
3a6ba4ff15
commit
dd95f701ce
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user