Allow to configure access mode of the host paths (#165)
* CentOS, Fedora and RHEL: allow to configure access mode of the host paths * Add docs related to RHEL configuration * bump new chart version
This commit is contained in:
parent
f57f5611e5
commit
99d6dc0385
|
|
@ -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.3.0
|
version: 2.3.1
|
||||||
appVersion: 0.47.0
|
appVersion: 0.47.0
|
||||||
home: https://github.com/google/cadvisor
|
home: https://github.com/google/cadvisor
|
||||||
sources:
|
sources:
|
||||||
|
|
|
||||||
|
|
@ -89,3 +89,6 @@ $ helm install --name my-release -f values.yaml ckotzbauer/cadvisor
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
> **Tip**: You can use the default [values.yaml](values.yaml)
|
||||||
|
|
||||||
|
## Centos, Fedora and RHEL
|
||||||
|
You may need to run the container with additional configuration. Please see [this article](https://github.com/google/cadvisor/blob/master/docs/running.md#centos-fedora-and-rhel).
|
||||||
|
|
@ -53,7 +53,7 @@ spec:
|
||||||
{{- range .Values.container.hostPaths }}
|
{{- range .Values.container.hostPaths }}
|
||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
mountPath: {{ default .path .mount }}
|
mountPath: {{ default .path .mount }}
|
||||||
readOnly: true
|
readOnly: {{ list nil true | has .readOnly }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ if .Values.podSecurityContext.create }}
|
{{ if .Values.podSecurityContext.create }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
||||||
|
|
@ -21,14 +21,19 @@ container:
|
||||||
- name: rootfs
|
- name: rootfs
|
||||||
path: "/"
|
path: "/"
|
||||||
mount: "/rootfs"
|
mount: "/rootfs"
|
||||||
|
readOnly: true
|
||||||
- name: varrun
|
- name: varrun
|
||||||
path: "/var/run"
|
path: "/var/run"
|
||||||
|
readOnly: true
|
||||||
- name: sys
|
- name: sys
|
||||||
path: "/sys"
|
path: "/sys"
|
||||||
|
readOnly: true
|
||||||
- name: docker
|
- name: docker
|
||||||
path: "/var/lib/docker"
|
path: "/var/lib/docker"
|
||||||
|
readOnly: true
|
||||||
- name: disk
|
- name: disk
|
||||||
path: "/dev/disk"
|
path: "/dev/disk"
|
||||||
|
readOnly: true
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue