rook-ceph-cluster
by mkhpalm
A Helm chart for rook ceph cluster CRD
About this chart
Rook CephCluster CRD Helm Chart
Rook allows creation and customization of storage clusters through the custom resource definitions (CRDs). This is a companion chart to Ceph Operator Helm Chart
- Ceph Operator Helm: https://rook.io/docs/rook/v1.5/helm-operator.html
- CephCluster CRD: https://rook.io/docs/rook/v1.5/ceph-cluster-crd.html
Prerequisites
Install rook-ceph-operator and add this repo to your helm repositories
$ helm repo add mkhpalm https://mkhpalm.github.io/helm-charts/
$ helm repo update
What this chart does is manifests the cluster custom resource and adds a few things:
- RBAC to run CR in different namespaces than rook operator
- Ability to run multiple clusters from a single operator
- Ingress options for ceph manager
- Prometheus operator support to monitor metrics
- Alertmanager rules for ceph
- etc
Configuration Options
You can define all configurations using spec just like the standalone CephCluster custom resource. If you are using multiple namespaces make sure to define operator.namespace so this chart knows how to map roles for rook-ceph-operator to access it.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| ingress.annotations | object | {} | |
| ingress.enabled | bool | false | |
| ingress.hosts[0] | string | "chart-example.local" | |
| ingress.path | string | "/" | |
| ingress.tls | list | [] | |
| operator.namespace | string | "rook-ceph" | |
| serviceMonitor.enabled | bool | false | |
| serviceMonitor.interval | string | "" | |
| serviceMonitor.metricRelabelings | list | [] | |
| serviceMonitor.relabelings | list | [] | |
| spec.cephVersion.image | string | "ceph/ceph:v15.2.13" | |
| spec.dataDirHostPath | string | "/var/lib/rook" | |
| spec.mon.allowMultiplePerNode | bool | false | |
| spec.mon.count | int | 3 | |
| spec.storage.useAllDevices | bool | true | |
| spec.storage.useAllNodes | bool | true |
Deploy rook-ceph-cluster with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rook-ceph-cluster on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrook-ceph-cluster is pinned at v1.5.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply