mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-11 02:16:53 +00:00
24 lines
497 B
YAML
24 lines
497 B
YAML
|
---
|
||
|
apiVersion: kyverno.io/v1
|
||
|
kind: ClusterPolicy
|
||
|
metadata:
|
||
|
annotations:
|
||
|
pod-policies.kyverno.io/autogen-controllers: none
|
||
|
policies.kyverno.io/category: Pod Security Standards (Restricted)
|
||
|
policies.kyverno.io/severity: medium
|
||
|
name: psa
|
||
|
spec:
|
||
|
background: true
|
||
|
rules:
|
||
|
- name: restricted
|
||
|
match:
|
||
|
any:
|
||
|
- resources:
|
||
|
kinds:
|
||
|
- Pod
|
||
|
validate:
|
||
|
podSecurity:
|
||
|
level: restricted
|
||
|
version: latest
|
||
|
validationFailureAction: Audit
|