This message was deleted.
# longhorn-storage
a
This message was deleted.
m
If you don't want longhorn on this node, do not install open-iscsi. You will need to set a nodeSelector using your label. That should suffice, but you can also add affinity/anti-affinity to further set scheduling for longhorn. Make sure you set the nodeSelector on all components of longhorn in the helm chart. Don't do manual edits since the next upgrade it will override your edits with what you have set in values.yaml This example is when I wanted longhorn to only run on control plane nodes with the label set to longhorn.
Copy code
longhornAdmissionWebhook:
  tolerations:
    - key: "node-role.kubernetes.io/master"
      operator: "Exists"
  nodeSelector:
    k8s.storage.local/default: "longhorn"
^ the nodeSelector part you need to add to each component including global in the helm chart.
h
Roger that
Thankyou for response
m
No worries and good luck. If you need any more help, just message this thread and I will see it.
h
I don’t want to use helm chart, I just wanted to use the longhorn.yaml file by the way
m
ohh, ok. Whatever works for you.
h
@mysterious-animal-29850 are you a longhorn dev ?
m
I wish lol. No not at all. Experienced user, used it in production for a few years.
also, using "experienced" here very loosely 🙂