Added security context to work with oom events

This commit is contained in:
Dmitrii Didenko 2021-09-13 15:34:27 +03:00
parent 8b2095def7
commit 97fca62276
3 changed files with 10 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.2.4 version: 1.3.0
appVersion: 0.39.2 appVersion: 0.39.2
home: https://github.com/google/cadvisor home: https://github.com/google/cadvisor
sources: sources:

View File

@ -48,6 +48,10 @@ spec:
mountPath: {{ default .path .mount }} mountPath: {{ default .path .mount }}
readOnly: true readOnly: true
{{- end }} {{- end }}
{{ if .Values.podSecurityContext.create }}
securityContext:
privileged: {{ .Values.podSecurityContext.privileged }}
{{- end }}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.container.port }} containerPort: {{ .Values.container.port }}

View File

@ -58,6 +58,11 @@ podSecurityPolicy:
create: false create: false
privileged: false privileged: false
# Specifies whether a securityContext should be created. Required for privileged operations.
podSecurityContext:
create: false
privileged: false
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []