Enable generic settting of tolerations and affinity for smee deployment #118
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.
Description
Adds generic
tolerations
andaffinity
fields to the valuesWhy is this needed
This way, users have more control over where the smee pod is running.
We have a setup where a specific node is added to the management-cluster, which is in the same L2 network as the machines that are being provisioned (as is required by dhcp).
(Before this we had a separate vm running in the target network, running smee with extra configurations so that it can grab the required configurations from the management cluster externally, but that setup is way more complicated, having to put serviceaccount tokens in there and everything)
How Has This Been Tested?
With this new chart setup, added specific tolerations and affinity that target a taint/label on the 'special' node which is in the target network. After that, provisioned some machines which worked fine.
How are existing users impacted? What migration steps/scripts do we need?
Shouldn't impact anyone in any way.
However, this would open the door to removing the singleNodeClusterConfig code and just documenting how these settings can be used on a single node cluster.
Checklist:
I have: