-
Notifications
You must be signed in to change notification settings - Fork 7k
feat: Add nodeSelector for Linux nodes #20148
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
Changes from all commits
e3acfb2
a2f1181
6e2d261
f3f1a93
7b07096
541e24b
4f8100e
e788ad6
878f2cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -264,3 +264,5 @@ spec: | |
| items: | ||
| - key: controller.profile.enabled | ||
| path: profiler.enabled | ||
| nodeSelector: | ||
| kubernetes.io/os: linux | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -211,3 +211,5 @@ spec: | |
| path: tls.key | ||
| - key: ca.crt | ||
| path: ca.crt | ||
| nodeSelector: | ||
| kubernetes.io/os: linux | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,3 +89,5 @@ spec: | |
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| nodeSelector: | ||
| kubernetes.io/os: linux | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Instead of hard coding this for all users this it can be an optional kustomization, we can document it in the docs to let users know how/when to use the kustomization if needed instead.
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.
What is the concern about adding this globally?
I'm not seeing a downside to applying this as it will have no effect on clusters that only have Linux nodes.
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.
I'm a bit ignorant about multi-OS clusters. Do we know with reasonable certainty that
kubernetes.io/oswill be set for all nodes for all relevant versions of Kubernetes across all major vendors? Or is it just a convention that may or may not be in place?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.
I believe this is autopopulated by Kubernetes. See the docs
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.
In all current kubernetes clusters (version 1.14 (2019) to present (v1.31)), the
kubernetes.io/oslabel is automatically set. Previous to that, the label wasbeta.kubernetes.io/os. Versions since 1.14 seem to have both labels for reverse compatibility, but officially, beta is deprecated.