onedr0p / home-ops

Wife approved HomeOps driven by Kubernetes and GitOps using Flux

Home Page:https://onedr0p.github.io/home-ops/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set an affinity for ceph mgr and mons to be on my master nodes

onedr0p opened this issue · comments

This would be nice to know where they are scheduled in the future. It will require a cluster rebuild to make happen.

https://github.com/buroa/k8s-gitops/blob/5657962162d076b4380dd51ec7ed59d83542a5b7/kubernetes/apps/rook-ceph/rook-ceph/cluster/helmrelease.yaml#L84-L95

      placement:
        mgr:
          nodeAffinity: &nodeAffinity
            requiredDuringSchedulingIgnoredDuringExecution:
              nodeSelectorTerms:
                - matchExpressions:
                    - key: node-role.kubernetes.io/control-plane
                      operator: Exist
        mon:
          nodeAffinity: *nodeAffinity

Hi,
are you sure this affinity is right without a NoSchedule-toleration?

@acuntex works for me 🤷🏼 I do not taint my masters