This message was deleted.
# longhorn-storage
a
This message was deleted.
f
Did you manually added the taint http://node.kubernetes.io/unschedulable:NoSchedule or it is populated by Kubernetes itself?
w
Hi @famous-journalist-11332, I used kubectl to add the taint even before deploying longhorn. It works as I dont have anything else other than k8s stuff deployed to it
f
The issue is that that taint doesn't stop the daemonset pod to be scheduled on that node. Kubernetes automatically allows daemonset pod to tolerate the taint http://node.kubernetes.io/unschedulable:NoSchedule As the result, Longhorn manager (which is a daemonset) will deploy a pod there. And that pod will recreate a Longhorn node CR if it sees that the CR is missing. Proposal: Use a different taint than the system one (http://node.kubernetes.io/unschedulable:NoSchedule)
w
Thats a general behavior with NoSchedule and deamonsets, or only with longhorn? Once I apply a new NoSchedule taint, and the node is "down" in longhorn ui, its safe to click to remove it?
I dont see any specific toleration on the longhorn-manager daemonset, I would like to understand it a bit better, I appreciate if you could elaborate @famous-journalist-11332
f
The daemonset yaml doesn't have it. However, when the daemonset controller create pods for the daemonset, it will automatically populate the toleration. You can checkit by looking at the yaml of the pod (not the daemonset) by
kubectl get pod <daemonset-pod-name> -oyaml
Thats a general behavior with NoSchedule and deamonsets, or only with longhorn?
Once I apply a new NoSchedule taint, and the node is "down" in longhorn ui, its safe to click to remove it?
This behavior happens with any daemonset. My proposal is to use a different taint than the system one (http://node.kubernetes.io/unschedulable:NoSchedule)
w
Oh, I was always under the impression that the toleration exists on the daemonset because it what I see for other DS in my environment. I guess implicit works the same way, and thats why I couldnt figure this out myself so far. Thank you @famous-journalist-11332