Skip to content
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

Merged
merged 16 commits into from Nov 2, 2021

Conversation

chirangaalwis
Copy link
Contributor

@chirangaalwis chirangaalwis commented Oct 16, 2021

Description:
Update multiple scheduler deployment example to align with changes introduced via v1.22. Addresses #29342.

Test Environment:

Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"darwin/arm64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-20T00:45:19Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}

Furthermore, used the default kube-scheduler image k8s.gcr.io/kube-scheduler:v1.22.0 for testing.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 16, 2021
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Oct 16, 2021
@netlify
Copy link

netlify bot commented Oct 16, 2021

✔️ 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

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

/sig scheduling

@k8s-ci-robot k8s-ci-robot added the sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. label Oct 16, 2021
Co-authored-by: Tim Bannister <tim@scalefactory.com>
chirangaalwis and others added 4 commits October 18, 2021 20:28
Co-authored-by: Deepak Gupta <deepakgdkg1g8868@gmail.com>
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
@chirangaalwis
Copy link
Contributor Author

@alculquicondor improved the PR based on the review.

@alculquicondor
Copy link
Member

/lgtm

@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 505491626e9fa6d95dd97a76072082e448014bb1

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 18, 2021
@Huang-Wei
Copy link
Member

@sftim This PR looks good in terms of sig-scheduling, would you mind approving this PR?

@alculquicondor
Copy link
Member

/assign @reylejano

Co-authored-by: Rey Lejano <rlejano@gmail.com>
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 2, 2021
Co-authored-by: Rey Lejano <rlejano@gmail.com>
@chirangaalwis
Copy link
Contributor Author

@reylejano please find the suggestions integrated into the PR. Appreciate if this could be reviewed and approved.

@@ -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/)
Copy link
Member

@reylejano reylejano Nov 2, 2021

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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...)

Copy link
Member

Choose a reason for hiding this comment

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

KubeSchedulerConfiguration sgtm

Copy link
Contributor Author

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.

Copy link
Contributor Author

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
Copy link
Member

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

Copy link
Contributor Author

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.

chirangaalwis and others added 3 commits November 2, 2021 13:59
@chirangaalwis
Copy link
Contributor Author

@reylejano updated based on review comments. Please review and approve.

@reylejano
Copy link
Member

reylejano commented Nov 2, 2021

Thank you so much for the updates
Reapplying lgtm from alculquicondor in a previous comment
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 2, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 19ca6df83b45429e990bf4fc661f693eaa103b69

@reylejano
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 2, 2021
@k8s-ci-robot k8s-ci-robot merged commit f8276a4 into kubernetes:main Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants