mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
22 lines
432 B
YAML
22 lines
432 B
YAML
|
apiVersion: kyverno.io/v2
|
||
|
kind: PolicyException
|
||
|
metadata:
|
||
|
name: pod-security-exception
|
||
|
spec:
|
||
|
exceptions:
|
||
|
- policyName: psp-restricted-limited
|
||
|
ruleNames:
|
||
|
- restricted
|
||
|
match:
|
||
|
any:
|
||
|
- resources:
|
||
|
kinds:
|
||
|
- Pod
|
||
|
podSecurity:
|
||
|
- controlName: Running as Non-root
|
||
|
images:
|
||
|
- '*/istio/proxyv2*'
|
||
|
restrictedField: spec.initContainers[*].securityContext.runAsNonRoot
|
||
|
values:
|
||
|
- "false"
|