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:
Tiago Posse 2023-06-28 20:07:42 +02:00 committed by GitHub
parent f22c003486
commit de6ad48834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1
description: A chart for a Cadvisor deployment
name: cadvisor
version: 2.2.4
version: 2.3.0
appVersion: 0.47.0
home: https://github.com/google/cadvisor
sources:

View File

@ -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.name` | name of the serviceAccount to create | `""` |
| `podAnnotations` | annotations for the daemonset pods | `{}` |
| `podLabels` | labels for the daemonset pods | `{}` |
| `priorityClassName` | priority classes name for the pod | `{}` |
| `podSecurityPolicy.create` | create a own PodSecurityPolicy for the pod | `false` |
| `podSecurityPolicy.privileged` | create the PodSecurityPolicy as privileged | `false` |

View File

@ -20,6 +20,9 @@ spec:
labels:
app: {{ template "cadvisor.name" . }}
release: {{ .Release.Name }}
{{- range $key, $value := .Values.podLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}

View File

@ -43,6 +43,7 @@ resources: {}
# memory: 128Mi
podAnnotations: {}
podLabels: {}
# priorityClassName: system-cluster-critical
priorityClassName: {}