-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support for commonNodeSelectors and commonTolerations #1358
Comments
We have a similar desire and are planning on writing external transformer plugins to set common nodeAffinity and tolerations for all podSpecs. nodeSelectors would be pretty trivial to include as well. If there is interest in this I can work on either opensourcing the external plugins we create and/or incorporating them as builtin transformer plugins. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
We are using the patch system for now, as a workaround. |
Was a decision made around whether the commonNodeSelectors and commonTolerations might be added in the future? This can be done via patching of course, but common* seems general-purpose and straightforward, and my project would use them if it were available. |
Is there a way to change the default patch strategy from My use case is to add to tolerations:
- key: "node-role.kubernetes.io/test"
effect: "NoSchedule"
operator: "Exists"
$patch: merge |
Similar to how commonAnnotations works, it would bee useful to be able to apply a common set of nodeSelectors and tolerations that apply to all podSpecs referenced by a kustomization.yaml.
This would allow running an entire application, defined by the kustomization.yaml, on dedicated hardware. So if I wanted to isolate production hardware from staging hardware, such a feature would enable that with ease.
The current workaround is perhaps to patch each podSpec individually.
The text was updated successfully, but these errors were encountered: