ckotzbauer_helm-charts/charts/cadvisor/templates/psp.yaml

26 lines
538 B
YAML

{{- if .Values.podSecurityPolicy.create -}}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: {{ template "cadvisor.name" . }}
namespace: {{ .Release.Namespace }}
spec:
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
runAsUser:
rule: RunAsAny
fsGroup:
rule: RunAsAny
volumes:
- '*'
{{ if .Values.podSecurityPolicy.privileged }}
privileged: true
{{- end }}
allowedHostPaths:
{{- range .Values.container.hostPaths }}
- pathPrefix: {{ .path }}
{{- end }}
{{- end -}}