mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
22 lines
No EOL
521 B
YAML
22 lines
No EOL
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): {} |