ceph-csi-rbd
Container Storage Interface (CSI) driver, provisioner, snapshotter, resizer and attacher for Ceph RBD
About this chart
ceph-csi-rbd
The ceph-csi-rbd chart adds rbd volume support to your cluster.
Install from release repo
Add chart repository to install helm charts from it
helm repo add ceph-csi https://ceph.github.io/csi-charts
Install from local Chart
we need to enter into the directory where all charts are present
cd charts
Note: charts directory is present in root of the ceph-csi project
Install chart
To install the Chart into your Kubernetes cluster(For helm 3.x):
Create the namespace where Helm should install the components with
kubectl create namespace "ceph-csi-rbd"
Run the installation
helm install --namespace "ceph-csi-rbd" "ceph-csi-rbd" ceph-csi/ceph-csi-rbd
After installation succeeds, you can get a status of Chart
helm status --namespace "ceph-csi-rbd" "ceph-csi-rbd"
Upgrade Chart
If you want to upgrade your Chart, use the following commands.
helm repo update ceph-csi
helm upgrade --namespace ceph-csi-rbd ceph-csi-rbd ceph-csi/ceph-csi-rbd
For upgrading to a specific version, provide the flag --version and the
version.
Do not forget to include your values, if they differ from the default values.
We recommend not to use --reuse-values in case there are new defaults AND
compare your currently used values with the new default values.
Known Issues Upgrading
-
When upgrading to version >=3.7.0, you might encounter an error that the RBD CSI Driver cannot be updated. Please refer to issue for more details. This is due to the CSIDriver resource not being updatable. To work around this you can delete the CSIDriver object by running:
kubectl delete csidriver rbd.csi.ceph.comThen rerun your
helm upgradecommand.
Delete Chart
If you want to delete your Chart, use this command
helm uninstall "ceph-csi-rbd" --namespace "ceph-csi-rbd"
If you want to delete the namespace, use this command
kubectl delete namespace ceph-csi-rbd
Configuration
The following table lists the configurable parameters of the ceph-csi-cephfs charts and their default values.
| Parameter | Description | Default |
|---|---|---|
rbac.create | Specifies whether RBAC resources should be created | true |
serviceAccounts.nodeplugin.create | Specifies whether a nodeplugin ServiceAccount should be created | true |
serviceAccounts.nodeplugin.name | The name of the nodeplugin ServiceAccount to use. If not set and create is true, a name is generated using the fullname | "" |
serviceAccounts.provisioner.create | Specifies whether a provisioner ServiceAccount should be created | true |
serviceAccounts.provisioner.name | The name of the provisioner ServiceAccount to use. If not set and create is true, a name is generated using the fullname | "" |
csiConfig | Configuration for the CSI to connect to the cluster | [] |
csiMapping | Configuration details of clusterID,PoolID,FscID mapping | [] |
encryptionKMSConfig | Configuration for the encryption KMS | {} |
commonLabels | Labels to apply to all resources | {} |
logLevel | Set logging level for csi containers. Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity. | 5 |
sidecarLogLevel | Set logging level for csi sidecar containers. Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity. | 1 |
logSlowOperationInterval | Log slow operations at the specified rate. Operation is considered slow if it outlives its deadline. | 30s |
nodeplugin.name | Specifies the nodeplugins name | nodeplugin |
nodeplugin.updateStrategy | Specifies the update Strategy. If you are using ceph-fuse client set this value to OnDelete | RollingUpdate |
nodeplugin.priorityClassName | Set user created priorityclassName for csi plugin pods. default is system-node-critical which is highest priority | system-node-critical |
nodeplugin.imagePullSecrets | Specifies imagePullSecrets for containers | [] |
nodeplugin.profiling.enabled | Specifies whether profiling should be enabled | false |
nodeplugin.registrar.image.repository | Node Registrar image repository URL | registry.k8s.io/sig-storage/csi-node-driver-registrar |
nodeplugin.registrar.image.tag | Image tag | v2.13.0 |
nodeplugin.registrar.image.pullPolicy | Image pull policy | IfNotPresent |
nodeplugin.plugin.image.repository | Nodeplugin image repository URL | quay.io/cephcsi/cephcsi |
nodeplugin.plugin.image.tag | Image tag | canary |
nodeplugin.plugin.image.pullPolicy | Image pull policy | IfNotPresent |
nodeplugin.podSecurityContext | Specifies pod-level security context. | {} |
nodeplugin.annotations | Specifies DaemonSet level annotations. | {} |
nodeplugin.podAnnotations | Specifies pod-level annotations. | {} |
nodeplugin.nodeSelector | Kubernetes nodeSelector to add to the Daemonset | {} |
nodeplugin.tolerations | List of Kubernetes tolerations to add to the Daemonset | {} |
provisioner.name | Specifies the name of provisioner | provisioner |
provisioner.replicaCount | Specifies the replicaCount | 3 |
provisioner.defaultFSType | Specifies the default Fstype | ext4 |
provisioner.deployController | It enables or disables the deployment of controller which generates the OMAP data if it is not present | true |
provisioner.hardMaxCloneDepth | Hard limit for maximum number of nested volume clones that are taken before a flatten occurs | 8 |
provisioner.softMaxCloneDepth | Soft limit for maximum number of nested volume clones that are taken before a flatten occurs | 4 |
provisioner.maxSnapshotsOnImage | Maximum number of snapshots allowed on rbd image without flattening | 450 |
provisioner.minSnapshotsOnImage | Minimum number of snapshots allowed on rbd image to trigger flattening | 250 |
provisioner.skipForceFlatten | Skip image flattening if kernel support mapping of rbd images which has the deep-flatten feature | false |
provisioner.timeout | GRPC timeout for waiting for creation or deletion of a volume | 60s |
provisioner.clustername | Cluster name to set on the RBD image | "" |
provisioner.setmetadata | Set metadata on volume | true |
provisioner.priorityClassName | Set user created priorityclassName for csi provisioner pods. Default is system-cluster-critical which is less priority than system-node-critical | system-cluster-critical |
provisioner.enableHostNetwork | Specifies whether hostNetwork is enabled for provisioner pod. | false |
provisioner.imagePullSecrets | Specifies imagePullSecrets for containers | [] |
provisioner.profiling.enabled | Specifies whether profiling should be enabled | false |
provisioner.provisioner.image.repository | Specifies the csi-provisioner image repository URL |
Deploy ceph-csi-rbd with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ceph-csi-rbd 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 chartceph-csi-rbd is pinned at v0.2.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