piraeusdatastore/piraeus

Schedule only on workers node

bratao opened this issue · 2 comments

Hello,

Thank you for this awesome technology, I´m very excited to try.
I installed using the helm, but one think. It also installed on the control node. I think that would be preferred in install only on nodes with the label node-role.kubernetes.io/worker . Or I´m missing something?

You should try the simple kubectl apply -f all.yaml. The node affinity for piraeus-node requires the node to 1. have label piraeus/node=true and 2. is not a k8s master node. If you have other affinity need, please edit it further.

     affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: piraeus/node
                operator: In
                values:
                - "true"
              - key: node-role.kubernetes.io/master
                operator: DoesNotExist

Makes sense. I´m used to see that the "Rancher" helms such as Project Longhorn and OpenEBS usually set the selector to this. I will refine to my own preferences, thanks!