Files
dsk-devops-toolchains/helm/openebs/charts/nfs-provisioner/templates/psp.yaml
2024-01-03 17:29:11 +09:00

32 lines
708 B
YAML

{{- if .Values.rbac.pspEnabled }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: {{ template "nfsProvisioner.fullname" . }}-psp
{{- with .Values.nfsProvisioner.annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "nfsProvisioner.labels" . | nindent 4 }}
spec:
privileged: {{ .Values.nfsProvisioner.privileged }}
allowPrivilegeEscalation: true
allowedCapabilities: ['*']
volumes: ['*']
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostIPC: true
hostPID: true
runAsUser:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'RunAsAny'
fsGroup:
rule: 'RunAsAny'
{{- end }}