зеркало из https://github.com/microsoft/pai.git
Tune default scheduler to support Job FIFO (#3726)
This commit is contained in:
Родитель
7953d59a4a
Коммит
502ca8ce47
|
@ -32,6 +32,7 @@ spec:
|
|||
name: apiserver-container
|
||||
command:
|
||||
- /usr/local/bin/kube-apiserver
|
||||
# Do not enable Priority Admission Controller
|
||||
- --admission-control=NamespaceLifecycle,LimitRanger,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,DenyEscalatingExec
|
||||
- --insecure-bind-address
|
||||
- {{ hostcofig['hostip'] }}
|
||||
|
|
|
@ -25,11 +25,17 @@ spec:
|
|||
containers:
|
||||
- image: {{ cluster_cfg['kubernetes']['docker-registry'] }}/kube-scheduler:{{ cluster_cfg['kubernetes']['kube-scheduler-version'] }}
|
||||
name: kube-scheduler
|
||||
command:
|
||||
- /usr/local/bin/kube-scheduler
|
||||
- --master
|
||||
- {{ cluster_cfg['kubernetes']['api-servers-ip'] }}:{{ cluster_cfg['kubernetes']['api-servers-port'] }}
|
||||
- --leader-elect=true
|
||||
command: [
|
||||
"sh", "-c",
|
||||
"echo apiVersion: kubescheduler.config.k8s.io/v1alpha1 >> sc.yaml &&
|
||||
echo kind: KubeSchedulerConfiguration >> sc.yaml &&
|
||||
echo disablePreemption: true >> sc.yaml &&
|
||||
/usr/local/bin/kube-scheduler
|
||||
--master={{ cluster_cfg['kubernetes']['api-servers-ip'] }}:{{ cluster_cfg['kubernetes']['api-servers-port'] }}
|
||||
--feature-gates=PodPriority=true
|
||||
--config=sc.yaml
|
||||
--leader-elect=true
|
||||
--v=4"]
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
|
|
|
@ -25,6 +25,7 @@ data:
|
|||
apiVersion: kubescheduler.config.k8s.io/v1alpha1
|
||||
kind: KubeSchedulerConfiguration
|
||||
schedulerName: hivedscheduler
|
||||
disablePreemption: true
|
||||
algorithmSource:
|
||||
policy:
|
||||
configMap:
|
||||
|
|
|
@ -39,6 +39,7 @@ spec:
|
|||
"/usr/local/bin/kube-scheduler",
|
||||
"--master={{ cluster_cfg['layout']['kubernetes']['api-servers-url'] }}",
|
||||
"--config=/hivedscheduler-config/config.yaml",
|
||||
"--feature-gates=PodPriority=true",
|
||||
"-v=4"]
|
||||
volumeMounts:
|
||||
- name: hivedscheduler-config
|
||||
|
|
|
@ -17,6 +17,7 @@ data:
|
|||
apiVersion: kubescheduler.config.k8s.io/v1alpha1
|
||||
kind: KubeSchedulerConfiguration
|
||||
schedulerName: hivedscheduler
|
||||
disablePreemption: true
|
||||
algorithmSource:
|
||||
policy:
|
||||
configMap:
|
||||
|
@ -126,6 +127,7 @@ spec:
|
|||
"/usr/local/bin/kube-scheduler",
|
||||
"--master=http://10.151.41.15:8080",
|
||||
"--config=/hivedscheduler-config/config.yaml",
|
||||
"--feature-gates=PodPriority=true",
|
||||
"-v=4"]
|
||||
volumeMounts:
|
||||
- name: hivedscheduler-config
|
||||
|
|
Загрузка…
Ссылка в новой задаче