add kyverno policies
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
4be877e419
commit
baa0216960
35 changed files with 843 additions and 39 deletions
|
|
@ -1,21 +0,0 @@
|
|||
apiVersion: kyverno.io/v2beta1
|
||||
kind: ClusterCleanupPolicy
|
||||
metadata:
|
||||
name: purge-terminal-pods
|
||||
spec:
|
||||
match:
|
||||
any:
|
||||
- resources:
|
||||
kinds:
|
||||
- Pod
|
||||
schedule: "*/15 * * * *"
|
||||
conditions:
|
||||
all:
|
||||
- key: "{{ request.object.status.phase }}"
|
||||
operator: AnyIn
|
||||
value:
|
||||
- Succeeded
|
||||
- Failed
|
||||
- key: "{{ request.object.metadata.creationTimestamp }}"
|
||||
operator: DurationGreaterThan
|
||||
value: 30m
|
||||
Loading…
Add table
Add a link
Reference in a new issue