-
Notifications
You must be signed in to change notification settings - Fork 275
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
Can't remove nodeSelector variable for packaged Helm charts #1757
Comments
Why do you want to remove the Linux nodeselector? These charts only work on Linux, and with the addition of Windows agent support it is important to ensure that these pods don't attempt to schedule on to the wrong OS. |
Hi @brandond |
Can you explain this bit? You're saying that the cluster autoscaler won't scale up your node count because some of the pods have nodeselectors? |
Yes, cluster autoscaler for Hetzner cloud triggers scale up event in case pending pod has node selector like:
or doesn't have node selectors at all. |
@brandond here is a detailed description
7.Cluster autoscaler logs, scale up has been triggered
|
That sounds like it's worth opening an issue with the Hetzner cluster autoscaler to be able to ignore nodeselectors? |
Based on the code here: https://github.com/kubernetes/autoscaler/blob/9d54f7b782fe9e1197ff20ed9e71e3af81ca1ae9/cluster-autoscaler/utils/labels/labels.go#L62 It appears that kubernetes.io nodeselector labels should not prevent the autoscaler from scaling the cluster? |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
After recent changes, like rancher/rke2-charts#133 packaged components have default
nodeSelector
which can't be removed.I tried to remove it using default RKE2 approach
HelmChartConfig:
HelmChart
Both of these methods don't work, all objects rendered by Helm charts contain
Environmental Info:
RKE2 Version:
rke2 version v1.21.4+rke2r2 (d5746a3)
go version go1.16.6b7
Node(s) CPU architecture, OS, and Version:
Linux k8s-cp-1 5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Expected behavior:
Variable
nodeSelector
is absent or empty whennodeSelector: {}
is set in Helm variables.The text was updated successfully, but these errors were encountered: