New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update "multiple schedulers" example #30107
Conversation
Remove invalid scheduler args, add new scheduler args and add new Scheduler Configuration for defining scheduler name
Defaults to 0.0.0.0
✔️ Deploy Preview for kubernetes-io-main-staging ready! 🔨 Explore the source changes: 7449bb3 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/61814aa25b0e4200073c8a18 😎 Browse the preview: https://deploy-preview-30107--kubernetes-io-main-staging.netlify.app |
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.
/sig scheduling
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Tim Bannister <tim@scalefactory.com>
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Show resolved
Hide resolved
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Deepak Gupta <deepakgdkg1g8868@gmail.com>
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
@alculquicondor improved the PR based on the review. |
/lgtm |
LGTM label has been added. Git tree hash: 505491626e9fa6d95dd97a76072082e448014bb1
|
@sftim This PR looks good in terms of sig-scheduling, would you mind approving this PR? |
/assign @reylejano |
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Rey Lejano <rlejano@gmail.com>
Co-authored-by: Rey Lejano <rlejano@gmail.com>
@reylejano please find the suggestions integrated into the PR. Appreciate if this could be reviewed and approved. |
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
@@ -71,15 +71,24 @@ config. Save it as `my-scheduler.yaml`: | |||
|
|||
{{< codenew file="admin/sched/my-scheduler.yaml" >}} | |||
|
|||
An important thing to note here is that the name of the scheduler specified as an | |||
argument to the scheduler command in the container spec should be unique. This is the name that is matched against the value of the optional `spec.schedulerName` on pods, to determine whether this scheduler is responsible for scheduling a particular pod. | |||
In the above manifest, you use a [Scheduler Configuration](/docs/reference/scheduling/config/) |
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.
Is it better to refer to Scheduler Configuration as KubeSchedulerConfiguration?
KubeSchedulerConfiguration configures a scheduler. I'm not sure what is better to use.
If Scheduler Configuration is not an API object then it should be lower case.
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.
@reylejano IMO, it is better to use KubeSchedulerConfiguration
as this avoids any confusion regarding the resource type (this is an API resource type although it is not a server resource type).
@alculquicondor @damemi WDYT?
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.
I usually try to use KubeSchedulerConfiguration
to show that I am specifically talking about this file/API object (and not, for example, other types of config like flags/policy/etc...)
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.
KubeSchedulerConfiguration
sgtm
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.
@damemi @alculquicondor ack. Will update.
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.
@reylejano updated in 7449bb3.
@@ -110,11 +119,15 @@ pod in this list. | |||
|
|||
To run multiple-scheduler with leader election enabled, you must do the following: | |||
|
|||
First, update the following fields in your YAML file: | |||
First, update the scheduler configuration (earlier you applied a |
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.
See my comment about scheduler configuration.
In either case, we should keep the case the same on this page as
Scheduler Configuration
is upper camel case in other parts of the page
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.
@reylejano already updated with c5cb03a.
content/en/docs/tasks/extend-kubernetes/configure-multiple-schedulers.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Rey Lejano <rlejano@gmail.com>
Co-authored-by: Rey Lejano <rlejano@gmail.com>
@reylejano updated based on review comments. Please review and approve. |
Thank you so much for the updates |
LGTM label has been added. Git tree hash: 19ca6df83b45429e990bf4fc661f693eaa103b69
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: reylejano The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description:
Update multiple scheduler deployment example to align with changes introduced via
v1.22
. Addresses #29342.Test Environment:
Furthermore, used the default
kube-scheduler
imagek8s.gcr.io/kube-scheduler:v1.22.0
for testing.