-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add option to define toleration on k8s jobs #751
Add option to define toleration on k8s jobs #751
Conversation
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
@gavinelder can I get nodes in dev with taints for AMD64 and ARM64 to test this feature? |
@gavinelder is node selector AND taint rule really needed? I'd prefer keeping only one of the two |
@gavinelder can you please have a look at previous comment at your convenience |
So IMHO we should keep both mechanisms, hope it makes sense |
I know, but want to simplify this, so if taint should our need, the other should be removed |
I believe that wave should support both as they have unique use-cases however reviewing this code I don't see why we need to implement it in this fashion with both an inclusion of an AMD & ARM toleration as they are the same. There are additional manifest extensions we should be aware of at the same time as implementing this feature such as |
Please include and example how the taint you are expected to be defined |
Thinking more about this, I believe that instead of implementing this into Wave we should look into having a mutating admission controller that applies the taint or ant other policy based on generic pod annotation. There are good solution for this, for example https://kyverno.io/ and surely more are available. |
A mutation admission controller was already considered when opening the issue: #702 (comment) |
Yes, that's the point. It looks like requirements vary depending the target installation and therefore we are not going to support this in Wave other then generic annotation. The admission controller provides a better separation of concerns and finer control. |
We discussed internally and agreed to implement a solution based on Kyverno (or similar approach) |
This PR will add config to setup toleration for build k8s jobs