mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
22 lines
No EOL
523 B
YAML
22 lines
No EOL
523 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): {} |