1.1 Resource Requirements and Limits

新建 Microsoft Word 文档_html_8928907b9094af23.png R新建 Microsoft Word 文档_html_a01a2f758ebc1e56.png

K8s can throttle the CPU of container so that it cannot exceed the limit. But the container can use more memory than its limit and then K8s will terminate the pod in the case.

1.2 Multiple Scheduler

Deploy additional scheduler:

1. First get the scheduler binary.
wget https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kube-scheduler
2. Deploy the scheduler in one of the following ways.
新建 Microsoft Word 文档_html_74e8d90aded73a4b.png
3. Specify the scheduler in the pod.

1.2.1 Deploy as service

Creat a service for shedular
my-custom-scheduler.service
  ExecStart=/usr/local/bin/kube-scheduler \\
  --config=/etc/kubernetes/config/kube-scheduler.yaml \\
  my-custom-scheduler.service
  --scheduler-name= my-custom-scheduler

Background: How to deploy scheduler as a service.
https://blog.csdn.net/qq_40460909/article/details/90646787

1.2.2 Deploy with kubeadm (static pods)

新建 Microsoft Word 文档_html_d69100fd8fed6eb3.png
etc/kubernetes/my-custom-scheduler.yaml

Tags:
Created by Bin Chen on 2020/09/04 04:05
    

Need help?

If you need help with XWiki you can contact:

京ICP备19054609号-1

京公网安备 11010502039855号