mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
20 lines
357 B
YAML
20 lines
357 B
YAML
|
apiVersion: kyverno.io/v2
|
||
|
kind: PolicyException
|
||
|
metadata:
|
||
|
name: exception-2
|
||
|
spec:
|
||
|
exceptions:
|
||
|
- policyName: psa
|
||
|
ruleNames:
|
||
|
- restricted
|
||
|
match:
|
||
|
all:
|
||
|
- resources:
|
||
|
kinds:
|
||
|
- Pod
|
||
|
podSecurity:
|
||
|
- controlName: "/proc Mount Type"
|
||
|
images:
|
||
|
- nginx
|
||
|
restrictedField: "spec.containers[*].securityContext.procMount"
|