Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Tune default scheduler to support Job FIFO #3726

Merged
merged 3 commits into from
Oct 14, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deployment/k8sPaiLibrary/template/apiserver.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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'] }}
Expand Down
16 changes: 11 additions & 5 deletions deployment/k8sPaiLibrary/template/scheduler.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update

"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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ data:
apiVersion: kubescheduler.config.k8s.io/v1alpha1
kind: KubeSchedulerConfiguration
schedulerName: hivedscheduler
disablePreemption: true
algorithmSource:
policy:
configMap:
Expand Down
1 change: 1 addition & 0 deletions src/hivedscheduler/deploy/hivedscheduler.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data:
apiVersion: kubescheduler.config.k8s.io/v1alpha1
kind: KubeSchedulerConfiguration
schedulerName: hivedscheduler
disablePreemption: true
algorithmSource:
policy:
configMap:
Expand Down Expand Up @@ -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
Expand Down