Nodeselector for os linux for fluxcd doesn't get applied in Helm deployment

1/3/2020

I am working with a Kubernetes environment with mixed worker nodes (Linux and windows).

I try to deploy fluxcd with the helm chart as explained at https://github.com/fluxcd/flux

The command I use:

helm upgrade -i flux fluxcd/flux --wait --namespace fluxcd --set git.url=${GHREPO} --set-file ssh.known_hosts=/home/${USER}/work/DevOps/flux/known_hosts --set git.user=${GHUSER} --set git.email="testqmail.com"  

Expectation in the deployment of fluxcd the nodeselector is available.

But the deployment in kubernetes does not contain the nodeselector:

...
      nodeSelector: 
        beta.kubernetes.io/os: linux    
...

and therefore the Kubernetes scheduler runs it on a windows node which of course fails

Workaround possible with kubectl patch deployment but how do I do this with helm in a correct way?

-- Klaus
kubernetes
kubernetes-helm

0 Answers