(feature):add priorityClassName to daemonset (#104)

Co-authored-by: yangchao <yangchao10@xiaomi.com>
This commit is contained in:
yccharles 2022-05-29 15:18:51 +08:00 committed by GitHub
parent e9473ca5ec
commit 906fa2d602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: 2.1.0 version: 2.2.0
appVersion: 0.44.1 appVersion: 0.44.1
home: https://github.com/google/cadvisor home: https://github.com/google/cadvisor
sources: 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.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 | `{}` |
| `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` |
| `podSecurityContext.create` | create the podSecurityContext in container spec | `false` | | `podSecurityContext.create` | create the podSecurityContext in container spec | `false` |

View File

@ -24,6 +24,9 @@ spec:
{{ $key }}: {{ $value | quote }} {{ $key }}: {{ $value | quote }}
{{- end }} {{- end }}
spec: spec:
{{ if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{ if .Values.image.pullSecrets }} {{ if .Values.image.pullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- range .Values.image.pullSecrets }} {{- range .Values.image.pullSecrets }}

View File

@ -44,6 +44,9 @@ resources: {}
podAnnotations: {} podAnnotations: {}
# priorityClassName: system-cluster-critical
priorityClassName: {}
# sometimes errors are encountered when using the cpu load reader without being on the host network # sometimes errors are encountered when using the cpu load reader without being on the host network
hostNetwork: false hostNetwork: false