vcluster icon indicating copy to clipboard operation
vcluster copied to clipboard

Select nodes for the initial k3s StatefulSet

Open efrecon opened this issue 4 years ago • 2 comments

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 avatar May 26 '21 12:05 efrecon

@efrecon thanks for creating this issue! Yes we can add this to the vcluster chart

FabianKramm avatar May 26 '21 12:05 FabianKramm

@efrecon this should work now with v0.3.0-alpha.2

FabianKramm avatar May 27 '21 07:05 FabianKramm

This was implemented, so I'll close the issue. The top level nodeSelector helm value can be used for this purpose.

matskiv avatar Nov 02 '22 19:11 matskiv