28 lines
610 B
YAML
28 lines
610 B
YAML
{{- if .Values.rbac.pspEnabled }}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: {{ template "jiva.fullname" . }}-psp
|
|
{{- with .Values.csiNode.annotations }}
|
|
annotations: {{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "jiva.csiNode.labels" . | nindent 4 }}
|
|
spec:
|
|
privileged: true
|
|
allowPrivilegeEscalation: true
|
|
allowedCapabilities: ['*']
|
|
volumes: ['*']
|
|
hostNetwork: true
|
|
hostIPC: true
|
|
hostPID: true
|
|
runAsUser:
|
|
rule: 'RunAsAny'
|
|
seLinux:
|
|
rule: 'RunAsAny'
|
|
supplementalGroups:
|
|
rule: 'RunAsAny'
|
|
fsGroup:
|
|
rule: 'RunAsAny'
|
|
{{- end }}
|