How to use storage at Master Node?

457 views
Skip to first unread message

Engin Güngör

unread,
Feb 21, 2021, 2:56:25 PM2/21/21
to rook-dev
Hello, I have a cluster which is contains 3 master and 3 worker node. I want to create my OSD  from my master node volume. Is it possible with rock?
I have already tried with nodeSelector part in cluster.yaml file but it didn't work.
Thanks.

Alexander Trost

unread,
Feb 21, 2021, 5:14:16 PM2/21/21
to Engin Güngör, rook-dev
If you want to add your Kubernetes master node(s) to as eligible nodes for your Rook Ceph Cluster, you need to add the tolerations to the sections of your CephCluster CR that you want to run on the master node(s).
Basic toleration example which might work depending on your K8S master nodes setup:
```
tolerations:
      - key: node-role.kubernetes.io/master
        operator: Exists
        effect: NoSchedule
```
If you want to consume Rook Ceph storage, you need to add tolerations to the Ceph CSI DaemonSets using the environment variables on the Rook Ceph operator, see https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/operator.yaml#L108-L116

The Rook Ceph operator.yaml env var I linked to is also serving as an example for how the toleration might look like for allowing Pods / components to run on the K8S master nodes, https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/operator.yaml#L108-L116


--
You received this message because you are subscribed to the Google Groups "rook-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rook-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rook-dev/63d9d343-49a0-4c32-be88-78ba3ca5c7c2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages