mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 18:06:55 +00:00
21 lines
376 B
YAML
21 lines
376 B
YAML
|
apiVersion: kyverno.io/v2beta1
|
||
|
kind: PolicyException
|
||
|
metadata:
|
||
|
name: pod-security-exception
|
||
|
namespace: policy-exception-ns
|
||
|
spec:
|
||
|
exceptions:
|
||
|
- policyName: psa-1
|
||
|
ruleNames:
|
||
|
- restricted
|
||
|
match:
|
||
|
any:
|
||
|
- resources:
|
||
|
namespaces:
|
||
|
- staging-ns
|
||
|
podSecurity:
|
||
|
- controlName: Capabilities
|
||
|
images:
|
||
|
- nginx*
|
||
|
- redis*
|