rbd-provisioner

by KubeSphere

Helm chartv0.1.1App 0.1.0Verified publisher

rbd provisioner is an automatic provisioner that used your *already configured* ceph-rbd server, automatically creating Persistent Volumes.

About this chart

rbd-provisioner

The rbd provisioner is an automatic provisioner for Kubernetes that uses your already configured ceph-rbd server, automatically creating Persistent Volumes.

TL;DR;

$ helm install test/rbd-provisioner -n kube-system --name-template=rbd-provisioner --set ceph.mon=,ceph.adminKey=,ceph.userKey=

Prerequisites

  • Kubernetes 1.9+
  • Existing ceph server

Installing the Chart

To install the chart with the release name my-release:

helm repo add test https://charts.kubesphere.io/test
helm install test/rbd-provisioner -n kube-system --name-template=rbd-provisioner --set ceph.mon=,ceph.adminKey=,ceph.userKey=

Tip: List all releases using helm list -n kube-system

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release -n kube-system

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of this chart and their default values.

ParameterDescriptionDefault
image.repositoryProvisioner imagekubesphere/rbd-provisioner
image.tagVersion of provisioner imagev2.1.1-k8s1.11
image.pullPolicyImage pull policyIfNotPresent
sc.createCreate StorageClass or nottrue
sc.nameName of the StorageClassrbd
sc.isDefaultSet as the default StorageClassfalse
sc.reclaimPolicyMethod used to reclaim an obsoleted volumeDelete
sc.provisionerName of the provisionerceph.com/rbd
sc.fyTypeFilesystem type the StorageClassext4
sc.imageFormatImageFormat parameter of the StorageClass2
sc.imageFeaturesImageFeatures parameter of StorageClasslayering
ceph.adminIdAdmin ID of ceph serveradmin
ceph.adminKeyAdmin Key of ceph servernull ( ceph auth get-key client.admin | base64)
ceph.userIdUser ID of ceph server (can be admin)admin
ceph.userKeyUser Key of ceph servernull
ceph.monMon of cephnull
ceph.poolPool of cephrbd

Deploy rbd-provisioner with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rbd-provisioner 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrbd-provisioner is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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