-
Notifications
You must be signed in to change notification settings - Fork 314
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
[BUG] kubernetes.azure.com/scalesetpriority:spot is user-overrideable #3152
Comments
We might also investigate if the |
cc @zmalik |
I believe no, at least I never observed lost taints, only labels were lost. |
Action required from @Azure/aks-pm |
This is fixed pls check now. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
foo=bar
) label applied to the pool, and to all of its nodes; but, thekubernetes.azure.com/scalesetpriority:spot
label will be deleted.After the above happens, all spot-targeted workloads will be disrupted, as the node affinity requirements are no longer fulfilled.
The above behavior seems to be because the spot-required node pool label is shared with the user-configurable node pool label surface area. The documentation here explains that node pool label updates overwrite the entire set of existing labels:
(And thus you must always issue updates as an entire "set" of "user" labels.)
Additionally, here we document that when you use the Spot feature you get the
kubernetes.azure.com/scalesetpriority:spot
label:The documentation does not mention that user labels maintenance also includes the requirement to include that label with any subsequent node pool label update (which is effectively what the current implementation requires a user to do).
Arguably AKS should not impose such a requirement on the user, and should instead expose a user-configurable interface to manage node pool labels that is entirely distinct from
kubernetes.azure.com/
-prefixed labels that are required in order for foundational Kubernetes + Azure functionality.Expected behavior
I would expect the user node pool label update to be successful, but not to effect any "system" labels such as
kubernetes.azure.com/scalesetpriority:spot
.Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: