mirror of https://git.rancher.io/charts
32 lines
781 B
YAML
32 lines
781 B
YAML
|
{{ if and .Values.rbac.enabled .Values.rbac.psp.enabled }}
|
||
|
apiVersion: policy/v1beta1
|
||
|
kind: PodSecurityPolicy
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
name: psp.logging-operator
|
||
|
namespace: {{ include "logging-operator.namespace" . }}
|
||
|
annotations:
|
||
|
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
|
||
|
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default'
|
||
|
spec:
|
||
|
readOnlyRootFilesystem: true
|
||
|
privileged: false
|
||
|
allowPrivilegeEscalation: false
|
||
|
runAsUser:
|
||
|
rule: MustRunAsNonRoot
|
||
|
fsGroup:
|
||
|
rule: MustRunAs
|
||
|
ranges:
|
||
|
- min: 1
|
||
|
max: 65535
|
||
|
supplementalGroups:
|
||
|
rule: MustRunAs
|
||
|
ranges:
|
||
|
- min: 1
|
||
|
max: 65535
|
||
|
seLinux:
|
||
|
rule: RunAsAny
|
||
|
volumes:
|
||
|
- secret
|
||
|
- configMap
|
||
|
{{ end }}
|