forked from kubernetes-sigs/descheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cron.yaml
33 lines (32 loc) · 881 Bytes
/
cron.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: descheduler-job
namespace: kube-system
spec:
schedule: "0 1 * * *"
concurrencyPolicy: Forbid
jobTemplate:
metadata:
name: descheduler-pod
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
template:
spec:
containers:
- name: descheduler
image: gcr.io/stae-product/descheduler:v0.8.0-37-g0866e248
volumeMounts:
- mountPath: /policy-dir
name: policy-volume
command:
- /bin/descheduler
- --policy-config-file
- /policy-dir/policy.yaml
restartPolicy: "Never"
serviceAccountName: descheduler-sa
volumes:
- name: policy-volume
configMap:
name: descheduler-policy-configmap