mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
28 lines
622 B
YAML
28 lines
622 B
YAML
|
|
{{- if .Values.rbac.pspEnabled }}
|
||
|
|
apiVersion: policy/v1beta1
|
||
|
|
kind: PodSecurityPolicy
|
||
|
|
metadata:
|
||
|
|
name: {{ template "zfslocalpv.fullname" . }}-psp
|
||
|
|
{{- with .Values.zfsNode.annotations }}
|
||
|
|
annotations: {{ toYaml . | nindent 4 }}
|
||
|
|
{{- end }}
|
||
|
|
labels:
|
||
|
|
{{- include "zfslocalpv.zfsNode.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 }}
|