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

template: specify priority class #77

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

maiqueb
Copy link
Collaborator

@maiqueb maiqueb commented Dec 11, 2024

What this PR does / why we need it:
This PR specifies the deployment's priority class, thus assuring the component is not preempted for other workloads with lesses priority.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Release note:

Specify the kubevirt-cluster-critical priorityClass for this deployment. It requires KubeVirt to be deployed.

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Dec 11, 2024
Copy link
Collaborator

@oshoval oshoval left a comment

Choose a reason for hiding this comment

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

what happen if someone tries to deploy it without kubevirt ?
(and the PC doesnt exists)
well he cant anyhow because it listens to VM / VMI i guess so it is non issue

@maiqueb
Copy link
Collaborator Author

maiqueb commented Dec 12, 2024

what happen if someone tries to deploy it without kubevirt ? (and the PC doesnt exists) well he cant anyhow because it listens to VM / VMI i guess so it is non issue

Yeah, that's kind of the point ... This is a project in the kubevirt org ...

I guess we should add to the docs a note indicating this must be used w/ kubevirt.

Let me check what happens though ...

@oshoval
Copy link
Collaborator

oshoval commented Dec 12, 2024

Please dont over invest on that, it also happens on KubeSecondaryDNS, and we concluded there it is fine
release note is more than enough imho

@maiqueb maiqueb requested a review from oshoval December 12, 2024 12:23
@oshoval
Copy link
Collaborator

oshoval commented Dec 12, 2024

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 12, 2024
@oshoval
Copy link
Collaborator

oshoval commented Dec 12, 2024

btw are you sure you want to use this pc ?
i remember that we used system-node-critical and system-node-critical built in pcs for sig network components.

We considered components that are mandatory for kubevirt to have higher prio than kubevirt,
if it was a DaemonSet it was highest prio pc, system-critical
if it was a Deployment that could be on any node, it was node-critical
Petr was in the loop, in case i am wrong

@maiqueb
Copy link
Collaborator Author

maiqueb commented Dec 16, 2024

btw are you sure you want to use this pc ? i remember that we used system-node-critical and system-node-critical built in pcs for sig network components.

We considered components that are mandatory for kubevirt to have higher prio than kubevirt, if it was a DaemonSet it was highest prio pc, system-critical if it was a Deployment that could be on any node, it was node-critical Petr was in the loop, in case i am wrong

So you're suggesting we use system-node-critical instead ?

@oshoval
Copy link
Collaborator

oshoval commented Dec 16, 2024

yes please, wdyt?
if you want to make sure Petr is best with that

@phoracek
Copy link
Member

For a deployment that other components relay on, use cluster critical. We don't have to be node critical - it is ok if the pod moves to a different node.

@phoracek
Copy link
Member

@oshoval

We considered components that are mandatory for kubevirt to have higher prio than kubevirt, if it was a DaemonSet it was highest prio pc, system-critical if it was a Deployment that could be on any node, it was node-critical Petr was in the loop, in case i am wrong

I don't remember / understand this. Why would we set node critical for a deployment?

@maiqueb maiqueb force-pushed the specify-priority-class branch from 1a32121 to d130eb1 Compare December 16, 2024 11:01
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2024
@oshoval
Copy link
Collaborator

oshoval commented Dec 16, 2024

I have a typo there / mix

I remember there are 2 classes, highest which is only for stuff that should be all on nodes
and one below that just need to be one stuff like Deployment that are allowed to switch but critical to have, such as KMP, as you said
forgot who is who

@maiqueb
Copy link
Collaborator Author

maiqueb commented Dec 16, 2024

@oshoval please take another look

@oshoval
Copy link
Collaborator

oshoval commented Dec 16, 2024

/lgtm

as you said Petr
https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/

please rebase once #80

Thanks

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2024
Signed-off-by: Miguel Duarte Barroso <[email protected]>
@maiqueb maiqueb force-pushed the specify-priority-class branch from d130eb1 to 9ca9e7e Compare December 16, 2024 11:10
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2024
@oshoval
Copy link
Collaborator

oshoval commented Dec 16, 2024

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2024
@maiqueb
Copy link
Collaborator Author

maiqueb commented Dec 16, 2024

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maiqueb

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 16, 2024
@kubevirt-bot kubevirt-bot merged commit 9bd7b45 into kubevirt:main Dec 16, 2024
4 checks passed
@oshoval
Copy link
Collaborator

oshoval commented Dec 17, 2024

Nit:
Release note: "It requires KubeVirt to be deployed." still true but not due to the PC / this PR
Thanks

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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants