onedr0p / k3s-homeops-ansible

Bootstrap a k3s cluster on top of Ubuntu 20.04
54 stars 5 forks source link

Add taint to storage nodes for rook-ceph #39

Closed onedr0p closed 4 years ago

onedr0p commented 4 years ago

Would be nice to taint the servers running rook-ceph and apply tolerations to the rook-ceph deployments. This way standard workloads can only be ran on the worker nodes without any affinity rules.

onedr0p commented 4 years ago

There's documentation on how to apply taints to each container in the deployments.

https://rook.io/docs/rook/v1.2/helm-operator.html

carpenike commented 4 years ago

Perhaps a Ceph.converged: true Variable that when false sets a taint similar to the master one?

Then use the tolerations within the helm chart to allow Ceph to run on the tainted node.

onedr0p commented 4 years ago

Need to apply tolerations to deployments

onedr0p commented 4 years ago

Also need to apply tolerations to the cluster.yaml

https://github.com/k8s-at-home/k8s-cluster/blob/master/cluster/rook-ceph/cluster/cluster.yaml