feat: add node selector and tolerations flags for kubernetes jobs - #973
Open
zapo wants to merge 2 commits into
Open
feat: add node selector and tolerations flags for kubernetes jobs#973zapo wants to merge 2 commits into
zapo wants to merge 2 commits into
Conversation
Add --kubernetes-node-selector and --kubernetes-tolerations flags so run jobs can be pinned to a dedicated/tainted node pool. Tolerations use the kubectl-taint syntax key[=value]:effect (Exists when no value).
Expose the new --kubernetes-node-selector and --kubernetes-tolerations flags through the otfd and otf-agent helm charts (via the runner library), regenerate READMEs, bump chart versions, and document the flags in flags.md and executors.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
--kubernetes-node-selectorand--kubernetes-tolerationsto the kubernetes executor so run jobs can be scheduled onto a dedicated, tainted node pool instead of anywhere in the cluster.Changes
--kubernetes-node-selector— repeatablename=value, setsPodSpec.NodeSelector.--kubernetes-tolerations— repeatablekey[=value]:effect(kubectl-taint syntax; operator isExistswhen no value is given, otherwiseEqual; empty effect tolerates all effects), setsPodSpec.Tolerations.