mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
22 lines
521 B
YAML
22 lines
521 B
YAML
|
apiVersion: "kyverno.io/v1alpha1"
|
||
|
kind: "ClusterPolicy"
|
||
|
metadata:
|
||
|
name: "annotate-emptyDir"
|
||
|
annotations:
|
||
|
policies.kyverno.io/category: AutoScaling
|
||
|
policies.kyverno.io/description:
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: "add-safe-to-evict-annotation"
|
||
|
match:
|
||
|
resources:
|
||
|
kinds:
|
||
|
- "Pod"
|
||
|
mutate:
|
||
|
overlay:
|
||
|
metadata:
|
||
|
annotations:
|
||
|
+(cluster-autoscaler.kubernetes.io/safe-to-evict): true
|
||
|
spec:
|
||
|
volumes:
|
||
|
- (emptyDir): {}
|