Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Remove priorityclass from helper pods - #312

Merged
croomes merged 2 commits into
masterfrom
helper-priority-class
Mar 17, 2021
Merged

croomes merged 2 commits into
masterfrom
helper-priority-class

Conversation

@croomes

@croomes croomes commented Mar 16, 2021

Copy link
Copy Markdown
Contributor

Removes the system-node-critical priority class from the helper Pods. This will allow the pods to failover more quickly when the node is under pressure.

@croomes
croomes requested review from avestuk and darkowlzz March 16, 2021 15:27
// TestDeployPodPriorityClass tests that the pod priority class is set properly
// for the daemonset and statefulset pods when deployed in kube-system
// namespace.
// for the daemonset when deployed in kube-system namespace.

@darkowlzz darkowlzz Mar 16, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Because the priority class is cluster scoped and the old behavior of kube-system exclusivity is fixed, maybe this whole test can be removed. We don't set priority class on anything except the daemonset and the daemonset will always have the priority class set, regardless of the namespace.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since we still only set the DaemonSet priority class when it runs in kube-system, we should probably keep the test until we remove that restriction. I can do that in a separate PR. I think we still allow deploying CSI as a StatefulSet, so I kept those tests too, though I agree they're not very useful.

@darkowlzz darkowlzz left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removal of priority class from common pod properties looks good to me.
I've added a comment in #311 to add the common pod properties in scheduler as well.

@croomes
croomes merged commit c9a240d into master Mar 17, 2021
croomes added a commit that referenced this pull request Mar 17, 2021
@croomes
croomes deleted the helper-priority-class branch March 17, 2021 16:37
croomes added a commit that referenced this pull request Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants