2018-01-09 18:57:14 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
2018-07-18 14:47:22 +00:00
|
|
|
name: rescheduler-v0.4.0
|
2018-01-09 18:57:14 +00:00
|
|
|
namespace: kube-system
|
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
|
|
labels:
|
|
|
|
k8s-app: rescheduler
|
2018-07-18 14:47:22 +00:00
|
|
|
version: v0.4.0
|
2018-01-09 18:57:14 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
kubernetes.io/name: "Rescheduler"
|
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
2018-07-18 14:47:22 +00:00
|
|
|
- image: k8s.gcr.io/rescheduler:v0.4.0
|
2018-01-09 18:57:14 +00:00
|
|
|
name: rescheduler
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/log/rescheduler.log
|
|
|
|
name: logfile
|
|
|
|
readOnly: false
|
|
|
|
# TODO: Make resource requirements depend on the size of the cluster
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 100Mi
|
|
|
|
command:
|
|
|
|
# TODO: split this out into args when we no longer need to pipe stdout to a file #6428
|
|
|
|
- sh
|
|
|
|
- -c
|
2018-03-06 22:33:18 +00:00
|
|
|
- 'exec /rescheduler --running-in-cluster=false 1>>/var/log/rescheduler.log 2>&1'
|
2018-01-09 18:57:14 +00:00
|
|
|
volumes:
|
|
|
|
- hostPath:
|
|
|
|
path: /var/log/rescheduler.log
|
|
|
|
type: FileOrCreate
|
|
|
|
name: logfile
|