csi-neonsan

by KubeSphere

Helm chartv1.3.0App 1.2.2Verified publisher

A Helm chart for NeonSAN CSI Driver

About this chart

csi-neonsan

TL;DR;

helm install test/csi-neonsan

Prerequisite

  • qbd installed on each node
  • qbd modules (qbd&qbd_tcp&qbd_rdma) loaded

Installing

To install the chart with the release name csi-neonsan:

helm repo add test https://charts.kubesphere.io/test
helm install test/csi-neonsan --name-template csi-neonsan --namespace kube-system

The command deploys the csi-neonsan chart on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

If node os is centos, driver.node.repository(default csiplugin/csi-neonsan-ubuntu) should be set csiplugin/csi-neonsan-centos

helm install test/csi-neonsan --name-template csi-neonsan --namespace kube-system --set driver.node.repository=csiplugin/csi-neonsan-centos

Uninstalling

To uninstall/delete the csi-neonsan deployment:

helm delete csi-neonsan --namespace kube-system

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

Upgrade Notes

The csi-neonsan chart uses csi-snapshotter v4.0.0 by default starting from chart v1.2.4, v1 snapshot CRDs are required for csi-snapshotter v4.0.0 and above, therefore user must install v1 snapshot CRDs prior to the upgrade, otherwise the snapshot operation will fail. csi-snapshotter v4.0.0 supports both v1 and v1beta1 snapshot objects. User can specify chart value snapshotter.tag=v2.0.1 with helm to use csi-snapshotter v2.0.1 which does not require v1 snapshot CRDs to be installed.

Support matrix 

Chart VersionSnapshot CRDs VersionMin K8s Version
<= 1.2.3only v1beta11.14
>= 1.2.4both v1beta1 and v1, only v11.17

Configuration

The following table lists the configurable parameters of the csi-neonsan chart and their default values.

ParameterDescriptionDefault
driver.nameName of the CSI driverneonsan.csi.qingstor.com
driver.repositoryImage of CSI plugincsiplugin/csi-neonsan
driver.tagTag of CSI pluginv1.2.0
driver.pullPolicyImage pull policy of CSI pluginIfNotPresent
driver.configConfig of NeonSAN/etc/neonsan/qbd.conf
driver.node.repositoryImage of node DaemonSetcsiplugin/csi-neonsan-ubuntu
driver.node.tagTag of node DaemonSetv1.2.0
driver.node.pullPolicyConfig file name of NeonSANqbd.conf
provisioner.repositoryImage of csi-provisionercsiplugin/k8scsi/csi-provisioner
provisioner.tagTag of csi-provisionerv1.5.0
provisioner.volumeNamePrefixPrefix of volume name created by the driverpvc
attacher.repositoryImage of csi-attachercsiplugin/k8scsi/csi-attacher
attacher.tagTag of csi-attacherv2.1.1
resizer.repositoryImage of csi-resizercsiplugin/k8scsi/csi-resizer
resizere.tagTag of csi-resizerv0.5.1
snapshotter.repositoryImage of csi-snapshottercsiplugin/csi-snapshotter
snapshotter.tagTag of csi-snapshotterv2.0.1
registar.repositoryImage of csi-node-driver-registrarcsiplugin/csi-node-driver-registrar
registar.tagTag of csi-node-driver-registrarv1.2.0
sc.enableWhether to enable this StorageClasstrue
sc.isDefaultClassWhether to set this StorageClass as the default StorageClassfalse
sc.nameName of storage classcsi-neonsan
sc.reclaimPolicyReclaimPolicy parameter of storage classDelete
sc.allowVolumeExpansionAllowVolumeExpansion parameter of storage classtrue
sc.volumeBindingModeVolumeBindingMode parameter of storage classWaitForFirstConsumer
sc.fsTypeFsType parameter of storage classext4

The following table lists the parameters of NeonSAN api in StorageClass's parameter. See NeonSAN api document for detail.

ParameterTypeDefault
sc.pool_namestringkube
sc.rep_countint1
sc.mripstring
sc.mrportint
sc.rpoint
sc.encryptestring
sc.key_namestring
sc.rgstring
sc.labelstring
sc.policystring
sc.dcstring
sc.sample_volumestring
sc.mutex_groupstring
sc.rolestring
sc.min_rep_countint
sc.max_bsint

Deploy csi-neonsan with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has csi-neonsan 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 chartcsi-neonsan is pinned at v1.3.0 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