jhunt / k8s-boshrelease

A BOSH Release for deploying Kubernetes clusters
MIT License
13 stars 9 forks source link

Add toleration option on each CNI daemonset #68

Closed obeyler closed 4 years ago

obeyler commented 4 years ago

When daemonset for flannel or weavenet is created we need to add the opportunity to add toleration. Because if you put some taint on specific node to dedicate them , the daemonset won't be able to put a pod on it.

default node hasn'tgot any taint but we have 3 nodes with this parameter on job kubelet

(they are exposed by go router)

    - name: kubelet
      release: k8s
      properties:
        apiserver: ((virtual-ip))
        taints:
        - public=true:NoExecute

and 3 other (with big persistent disk)

    - name: kubelet
      release: k8s
      properties:
        apiserver: ((virtual-ip))
        taints:
        - bigstorage=true:NoExecute
obeyler commented 4 years ago

note that current toleration put on daemonset for flannel and weavenet are different https://github.com/jhunt/k8s-boshrelease/blob/4adef9fa622739fb819614650bfeb9a858ca2d8d/jobs/net-flannel/templates/k8s-init/flannel.yml#L106-L108

https://github.com/jhunt/k8s-boshrelease/blob/4adef9fa622739fb819614650bfeb9a858ca2d8d/jobs/net-weave/templates/k8s-init/weave.yml#L181-L185

jhunt commented 4 years ago

Handled in #69.