32 lines
758 B
YAML
32 lines
758 B
YAML
{{- if .Values.podSecurityPolicy.enabled }}
|
|
apiVersion: {{ template "podSecurityPolicy.apiVersion" . }}
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: {{ template "nfs-client-provisioner.fullname" . }}
|
|
labels:
|
|
app: {{ template "nfs-client-provisioner.name" . }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
privileged: false
|
|
allowPrivilegeEscalation: false
|
|
requiredDropCapabilities:
|
|
- ALL
|
|
volumes:
|
|
- 'secret'
|
|
- 'nfs'
|
|
hostNetwork: false
|
|
hostIPC: false
|
|
hostPID: false
|
|
runAsUser:
|
|
rule: 'RunAsAny'
|
|
seLinux:
|
|
rule: 'RunAsAny'
|
|
supplementalGroups:
|
|
rule: 'RunAsAny'
|
|
fsGroup:
|
|
rule: 'RunAsAny'
|
|
readOnlyRootFilesystem: false
|
|
{{- end }}
|