12345678910111213141516171819202122232425262728293031 |
- {{- 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 }}
|