-
Notifications
You must be signed in to change notification settings - Fork 549
Add service deployment for hived scheduler #3495
Conversation
Add service deployment for hived scheduler.
Add service config for hived scheduler.
src/hivedscheduler/deploy/stop.sh
Outdated
pushd $(dirname "$0") > /dev/null | ||
|
||
if kubectl get sts | grep -q "hivedscheduler-sts"; then | ||
kubectl delete sts hivedscheduler-sts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete it like FC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to make it a func?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could refine after https in apiserver enabled, make it a lib shared by all services
Add cluster type for k8s services.
./start.sh"] | ||
env: | ||
- name: KUBE_APISERVER_ADDRESS | ||
value: "{{ cluster_cfg['layout']['kubernetes']['api-servers-url'] }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should check whether it's a rbac cluster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable this env still cannot run in aks cluster, needs more changes after tested
image: gcr.io/google_containers/kube-scheduler:v1.14.2 | ||
command: [ | ||
"/usr/local/bin/kube-scheduler", | ||
"--master={{ cluster_cfg['layout']['kubernetes']['api-servers-url'] }}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In rbac cluster, could it get the address from env?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just followed hived scheduler's README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rbac issues can be fixed in other PR after fully tested
Remove hived scheduler config validation temporally, because the paictl validation checks all services.
|
||
template-list: | ||
- hivedscheduler.yaml | ||
- configmap.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configmap.yaml [](start = 4, length = 14)
configmap.yaml does not mean too much, rename it to hivedscheduler-config.yaml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Rename configmap.yaml to hivedscheduler-config.yaml.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add service deployment for hived scheduler.