vcluster
vcluster copied to clipboard
Select nodes for the initial k3s StatefulSet
The documentation describes how to select nodes that will receive deployments and other resources. But is it possible to similarly force the initial k3s StatefulSet to be restricted to node using a nodeSelector?
Manually modifying the StatefulSet once it has been created as of vcluster create works, but the UX would benefit from being able to pick nodes at creation time already.
The content of my values.yml file was as follows (I have a windows/linux hybrid cluster at hand).
rbac:
clusterRole:
create: true
syncer:
extraArgs:
- --fake-nodes=false
- --node-selector=beta.kubernetes.io/os=linux
- --enforce-node-selector
@efrecon thanks for creating this issue! Yes we can add this to the vcluster chart
@efrecon this should work now with v0.3.0-alpha.2
This was implemented, so I'll close the issue.
The top level nodeSelector helm value can be used for this purpose.