draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

Add nodeSelector OS constraints in all packs

Open alexpilotti opened this issue 7 years ago • 2 comments

When deploying on clusters with mixed Linux and Windows nodes, it's necessary to put a nodeSelector constraint to ensure that only nodes with the matching OS type get chosen by the scheduler.

The following should be added in the deployment specs for all the Linux deployment templates.

nodeSelector:
  beta.kubernetes.io/os: linux

Similarly Windows packs will need:

beta.kubernetes.io/os: windows

alexpilotti avatar Jun 08 '18 10:06 alexpilotti

Thanks, Alessio!

squillace avatar Jun 08 '18 14:06 squillace

Has this been resolved and if so, how do you specify the node selector via the draft pack ?

I built out a Windows pool in my K8s cluster and could'nt deploy my app using draft to the Linux pool.

I have to manually edit the manifest file, before I could get it to work, and this took me several hours to troubleshoot.

dazdaz avatar Jun 13 '19 06:06 dazdaz