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.

Set priority class for helper pods - #333

Merged
croomes merged 1 commit into
masterfrom
helper-priority-class
May 12, 2021
Merged

croomes merged 1 commit into
masterfrom
helper-priority-class

Conversation

@croomes

@croomes croomes commented May 12, 2021

Copy link
Copy Markdown
Contributor

Sets the system-cluster-critical priority class on StorageOS pods that must be running somewhere in the cluster. This allows the Pod to move to another node if it doesn't tolerate a taint (such as memory pressure) but ensures it runs somewhere.

@croomes
croomes requested review from avestuk, darkowlzz and mhmxs May 12, 2021 14:47
Comment thread pkg/storageos/podspec.go
// Prior to StorageOS v2.4.0, the priority class was only set for Pods running
// in the kube-system namespace, as k8s 1.16 and earlier would only allow this.
func (s *Deployment) addPodPriorityClass(podSpec *corev1.PodSpec, priorityClass string) {
podSpec.PriorityClassName = priorityClass

@darkowlzz darkowlzz May 12, 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.

Getting rid of the kube-system namespace conditional, finally 😃
Maybe the comment about kube-system above is not necessary.

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

LGTM!

@croomes
croomes merged commit 8b0bbba into master May 12, 2021
@croomes
croomes deleted the helper-priority-class branch May 12, 2021 18:27
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.

3 participants