add support for podlabels in cadvisor (#153)
* add support for podlabels in cadvisor * bump cadvisor chart version and add documentation for podLabels
This commit is contained in:
parent
f22c003486
commit
de6ad48834
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: A chart for a Cadvisor deployment
|
description: A chart for a Cadvisor deployment
|
||||||
name: cadvisor
|
name: cadvisor
|
||||||
version: 2.2.4
|
version: 2.3.0
|
||||||
appVersion: 0.47.0
|
appVersion: 0.47.0
|
||||||
home: https://github.com/google/cadvisor
|
home: https://github.com/google/cadvisor
|
||||||
sources:
|
sources:
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ The following table lists the configurable parameters of the cAdvisor chart and
|
||||||
| `serviceAccount.create` | create a own serviceAccount for the pod | `true` |
|
| `serviceAccount.create` | create a own serviceAccount for the pod | `true` |
|
||||||
| `serviceAccount.name` | name of the serviceAccount to create | `""` |
|
| `serviceAccount.name` | name of the serviceAccount to create | `""` |
|
||||||
| `podAnnotations` | annotations for the daemonset pods | `{}` |
|
| `podAnnotations` | annotations for the daemonset pods | `{}` |
|
||||||
|
| `podLabels` | labels for the daemonset pods | `{}` |
|
||||||
| `priorityClassName` | priority classes name for the pod | `{}` |
|
| `priorityClassName` | priority classes name for the pod | `{}` |
|
||||||
| `podSecurityPolicy.create` | create a own PodSecurityPolicy for the pod | `false` |
|
| `podSecurityPolicy.create` | create a own PodSecurityPolicy for the pod | `false` |
|
||||||
| `podSecurityPolicy.privileged` | create the PodSecurityPolicy as privileged | `false` |
|
| `podSecurityPolicy.privileged` | create the PodSecurityPolicy as privileged | `false` |
|
||||||
|
|
@ -68,8 +69,8 @@ The following table lists the configurable parameters of the cAdvisor chart and
|
||||||
| `podSecurityContext.privileged`| set podSecurityContext privileged to true | `false` |
|
| `podSecurityContext.privileged`| set podSecurityContext privileged to true | `false` |
|
||||||
| `metrics.enabled` | create ServiceMonitor CR for Prometheus operator | `false` |
|
| `metrics.enabled` | create ServiceMonitor CR for Prometheus operator | `false` |
|
||||||
| `metrics.relabelings` | add pre-scraping relabeling to ServiceMonitor | `[]` |
|
| `metrics.relabelings` | add pre-scraping relabeling to ServiceMonitor | `[]` |
|
||||||
| `metrics.interval` | scraping interval for the ServiceMonitor | `30s` |
|
| `metrics.interval` | scraping interval for the ServiceMonitor | `30s` |
|
||||||
| `metrics.scrapeTimeout` | scraping timeout for the ServiceMonitor | `30s` |
|
| `metrics.scrapeTimeout` | scraping timeout for the ServiceMonitor | `30s` |
|
||||||
| `metrics.metricsRelabelings` | add pre-ingestion relabeling to ServiceMonitor | `[]` |
|
| `metrics.metricsRelabelings` | add pre-ingestion relabeling to ServiceMonitor | `[]` |
|
||||||
|
|
||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "cadvisor.name" . }}
|
app: {{ template "cadvisor.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
|
{{- range $key, $value := .Values.podLabels }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := .Values.podAnnotations }}
|
{{- range $key, $value := .Values.podAnnotations }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ resources: {}
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
# priorityClassName: system-cluster-critical
|
# priorityClassName: system-cluster-critical
|
||||||
priorityClassName: {}
|
priorityClassName: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue