add pod annotations

This commit is contained in:
Meng-Lin Lu 2020-07-17 14:16:59 -07:00
parent 88fcc1ad2f
commit f401165cb2
4 changed files with 8 additions and 1 deletions

View File

@ -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: 1.1.1 version: 1.1.2
appVersion: 0.36.0 appVersion: 0.36.0
home: https://github.com/google/cadvisor home: https://github.com/google/cadvisor
sources: sources:

View File

@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Prometheus MSTeams
| `resources` | pod resource requests & limits | `{}` | | `resources` | pod resource requests & limits | `{}` |
| `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 | `{}` |
| `podSecurityPolicy.create` | create a own PodSecurityPolicy for the pod | `false` | | `podSecurityPolicy.create` | create a own PodSecurityPolicy for the pod | `false` |
| `metrics.enabled` | create ServiceMonitor CR for Prometheus operator | `false` | | `metrics.enabled` | create ServiceMonitor CR for Prometheus operator | `false` |

View File

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

View File

@ -37,6 +37,8 @@ resources: {}
# cpu: 100m # cpu: 100m
# memory: 128Mi # memory: 128Mi
podAnnotations: {}
serviceAccount: serviceAccount:
# Specifies whether a service account should be created # Specifies whether a service account should be created
create: true create: true