1.下载代码
https://github.com/ldnn/descheduler
2.根据实际情况修改调度的条件
如果镜像无法下载,可以使用dockerhub上镜像 https://hub.docker.com/r/k8simage/descheduler
3.应用yaml文件
kubectl apply -f rbac.yaml
kubectl apply -f configmap.yaml
kubectl apply -f job.yaml
4.查看日志
kubectl logs -n kube-system descheduler-job-vd5b4
descheduler参考:https://www.qikqiak.com/post/custom-kube-scheduler/
自定义descheduler参考:https://www.qikqiak.com/post/k8s-cluster-balancer/
helm安装请参考:https://github.com/kubernetes-sigs/descheduler/blob/master/charts/descheduler/README.md