Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 397 forks source link

Add nodeSelector OS constraints in all packs #817

Open alexpilotti opened 6 years ago

alexpilotti commented 6 years ago

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

squillace commented 6 years ago

Thanks, Alessio!

dazdaz commented 5 years ago

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.