This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 519
Set the csi-secrets-store to have a priority class #3909
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -282,6 +282,20 @@ status: | |
conditions: [] | ||
storedVersions: [] | ||
--- | ||
{{- /* A priority class for the daemonset such that they are not */}} | ||
{{- /* frozen out of a node due to the node filling up with "normal" */}} | ||
{{- /* pods before the daemonset controller can get the daemonset */}} | ||
{{- /* pods to be scheduled. */}} | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: csi-secrets-store | ||
labels: | ||
addonmanager.kubernetes.io/mode: EnsureExists | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added this label so that kube-addon-manager would interpret this resource for loading There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks - sorry I missed that. |
||
value: 1000 | ||
globalDefault: false | ||
description: "This is the daemonset priority class for csi-secrets-store" | ||
--- | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
|
@@ -298,6 +312,7 @@ spec: | |
labels: | ||
app: csi-secrets-store | ||
spec: | ||
priorityClassName: csi-secrets-store | ||
serviceAccountName: secrets-store-csi-driver | ||
hostNetwork: true | ||
containers: | ||
|
@@ -458,6 +473,7 @@ spec: | |
labels: | ||
app: csi-secrets-store-provider-azure | ||
spec: | ||
priorityClassName: csi-secrets-store | ||
serviceAccountName: csi-secrets-store-provider-azure | ||
hostNetwork: true | ||
containers: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @aramase @chewong this change was made due to observed scheduling contention on clusters at scale (i.e., nodes coming on line but filling up so quickly that csi-secrets-store pods were not able to be scheduled via daemonset
Should we make such a change to the upstream reference specs as well?