Adds support for overriding the hostNetwork property in the daemonset template spec, which allows use of the cpu load reader in situations where you otherwise encounter an error

This commit is contained in:
David Garson 2020-08-05 23:13:39 -07:00
parent 1690e99076
commit e15568d1d7
3 changed files with 7 additions and 1 deletions

View File

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

View File

@ -25,6 +25,9 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ template "cadvisor.serviceAccountName" . }}
{{ if .Values.hostNetwork }}
hostNetwork: true
{{- end }}
containers:
- name: {{ template "cadvisor.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

View File

@ -39,6 +39,9 @@ resources: {}
podAnnotations: {}
# sometimes errors are encountered when using the cpu load reader without being on the host network
hostNetwork: false
serviceAccount:
# Specifies whether a service account should be created
create: true