Skip to content

Instantly share code, notes, and snippets.

@tutsunom
Last active August 13, 2019 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tutsunom/9f5dcea6dcfe2b0d61a4f21fc9ed8a55 to your computer and use it in GitHub Desktop.
Save tutsunom/9f5dcea6dcfe2b0d61a4f21fc9ed8a55 to your computer and use it in GitHub Desktop.
Rook-Ceph : create ceph cluster
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: my-rook-ceph
namespace: my-rook-ceph
spec:
cephVersion:
image: 'ceph/ceph:v14.2.1-20190430'
dataDirHostPath: /var/lib/rook
mon:
count: 3
allowMultiplePerNode: false
dashboard:
enabled: true
network:
hostNetwork: false
rbdMirroring:
workers: 0
placement:
all:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nodetype
operator: In
values:
- storage
podAffinity:
podAntiAffinity:
tolerations:
- key: nodetype
operator: Equal
value: storage
effect: "NoSchedule"
storage:
useAllNodes: true
useAllDevices: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment