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

Fix(Helm): Add pod priorityClassName to prevent race condition due to pod eviction #182

Closed
wants to merge 1 commit into from

Conversation

bernardgut
Copy link
Contributor

@bernardgut bernardgut commented May 1, 2024

Pull Request template

Why is this PR required? What issue does it fix?:
Allows to set priorityClassName, e.g pod.spec.priorityClassName=system-node-critical. Prevents a race condition where pod might get evicted after the node running the pod gets in condition diskPressure=true. Thus preventing the pod from doing its job of cleaning up the pvcs that cause the condition.

What this PR does?:
Allows to set priorityClassName

Does this PR require any upgrade changes?: no

If the changes in this PR are manually verified, list down the scenarios covered::

  • helm create
  • helm upgrade
    etc

Any additional information for your reviewer? :
Critical for single-node clusters

Checklist:

  • Fixes (I did not create an issue as the issue is pretty straight forward to fix. Let me know if you want me to create an issue too)
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

Sorry, something went wrong.

Signed-off-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
@bernardgut bernardgut changed the title Fix(Helm): Add pod priorityClassName to prevent race conditions Fix(Helm): Add pod priorityClassName to prevent race condition due to pod eviction May 1, 2024
@niladrih
Copy link
Member

niladrih commented Jul 4, 2024

@bernardgut -- thank you for this. I've included this commit in #194. Closing this PR.

@niladrih niladrih closed this Jul 4, 2024
@niladrih niladrih self-assigned this Jul 4, 2024
niladrih added a commit that referenced this pull request Jan 22, 2025
* Allow specifying additional labels to be applied to all helm chart resources

This is added as a top-level `labels` map within the values file.
If it is populated, these labels will be added to the storageclass.
It is also added to the 'localpv.labels' variable, already included
within every resource besides the storageclass.

Signed-off-by: Andrew Lavery <laverya@umich.edu>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

* Add pod priorityClassName

Signed-off-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

* refactor(chart): refactor implementation for adding extra labels to all chart resources

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

* refactor(chart): refactor implementation for adding priorityClassName

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

* fix(charts): use the correct slack channel link

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

* chore(changelog): add changelog entries for PRs 182 & 183

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

* ci: pin medyagh/setup-minikube runs to ubuntu-22.04 (#229)

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>

---------

Signed-off-by: Andrew Lavery <laverya@umich.edu>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
Signed-off-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
Co-authored-by: Andrew Lavery <laverya@umich.edu>
Co-authored-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants