cluster-dell-csm
by startxfr
Configure the Dell Container Storage Modules (CSM) operator and a Dell CSI storage driver
About this chart
Cluster Chart : Dell CSM
Configure the Dell Container Storage Modules (CSM) operator and a Dell CSI storage driver.
This chart installs the certified dell-csm-operator-certified operator, deploys a Dell CSI driver (PowerStore by default, PowerMax, PowerFlex, PowerScale and Unity XT are supported through the csm.driverType value) with a ContainerStorageModule CR, manages the array credentials Secret read by the driver and creates the StorageClass and VolumeSnapshotClass objects consuming the array.
This chart is part of the cluster-xxx startx helm chart series that doesn't necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like ArgoCD.
Requirements and guidelines
Read the startx helm-repository homepage for more information on how to use these resources.
Prerequisites
- A Dell storage array (PowerStore, PowerMax, PowerFlex, PowerScale or Unity XT) whose management endpoint is reachable from the cluster nodes, and an array account allowed to provision storage (the Storage Operator role on PowerStore)
- The array credentials
Secretnamed<csm.name>-config(powerstore-configby default) in the driver namespace, holding the Dellarrays:configuration under theconfigkey. The chart renders it fromarraySecret.configor through anExternalSecret(see External secrets); it can also be created outside of the chart. The CR always carriesauthSecret, so the same name is used whatever the driver (the operator would otherwise look for<name>-configon PowerStore and PowerFlex,<name>-credson PowerMax, PowerScale and Unity); PowerFlex, PowerScale and Unity use the sameconfigkey with their own layout - The node side prerequisites of the chosen protocol are not handled by this chart and must be applied through MachineConfigs before enabling the driver:
iscsidandmultipathdservices for iSCSI,multipathdand FC zoning for Fibre Channel, unique host NQN and thenvmereconnect and round-robin settings for NVMe/TCP or NVMe/FC, NFS client for NFS volumes (see the Dell CSM documentation) - Access to the
certified-operatorscatalog of OperatorHub
The operator is installed in the openshift-operators namespace (AllNamespaces mode, the default of OperatorHub and of the Dell documentation), so no dedicated OperatorGroup is created. The driver runs in the default-dell-csm namespace created by the project sub-chart.
The csm.version value must be a CSM release supported by the installed operator: operator 1.13.x supports CSM v1.16.0 to v1.18.2, the full list being the operatorconfig/common/csm-releases.yaml file of the csm-operator release tag (oc get csv -n openshift-operators gives the installed operator version, oc get packagemanifests -n openshift-marketplace dell-csm-operator-certified -o jsonpath='{.status.channels[0].currentCSV}' the version proposed by the stable channel). Operators older than CSM 1.16 use the deprecated driver configuration version instead (csm.configVersion, ex: v2.18.1 for PowerStore, see operatorconfig/driverconfig/<driver>/).
Deploy this helm chart on openshift
1. Connect to your Openshift cluster
oc login -t <token> <cluster-url>
2. Install the repository
helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/
3. Get information about this chart
helm show chart startx/cluster-dell-csm
4. Install this chart
Default values
Complete deployment of a project with the following characteristics:
- Deploy the ContainerStorageModule CR (
default-dell-csm/powerstore) installing the PowerStore CSI driver (CSMv1.18.2, 2 controller replicas) whencsm.enabledis set - Deploy the array credentials Secret
powerstore-configfromarraySecret.configwhenarraySecret.enabledis set - Deploy the StorageClass
powerstore-xfsand the VolumeSnapshotClasspowerstore-snapshotwhenstorageClasses.enabledandvolumeSnapshotClasses.enabledare set - The operator subscription and namespace are managed separately via the
operatorandprojectsub-charts (both disabled by default)
# base configuration running default configuration
helm install cluster-dell-csm startx/cluster-dell-csm
Full deployment with operator and project
Enable the project namespace, the operator subscription, the array credentials and the driver with its storage classes
(the subscription uses installPlanApproval: Manual, approve the InstallPlan before the CR is reconciled):
cat > my-array.yaml <<EOF
arraySecret:
enabled: true
config: |
arrays:
- endpoint: "https://powerstore.example.com/api/rest"
globalID: "PS000000000000"
username: "csmadmin"
password: "changeme"
skipCertificateValidation: true
isDefault: true
blockProtocol: "ISCSI"
nasName: "nas-server"
EOF
helm install cluster-dell-csm startx/cluster-dell-csm -f my-array.yaml \
--set project.enabled=true \
--set operator.enabled=true \
--set csm.enabled=true \
--set storageClasses.enabled=true \
--set volumeSnapshotClasses.enabled=true
Other available values
- startx : Dell CSM driver, storage classes and snapshot class with full STARTX context and infra nodes placement (see values-startx.yaml)
- startx_noinfra : same deployment without infra nodes placement (see values-startx_noinfra.yaml)
helm install cluster-dell-csm startx/cluster-dell-csm -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-dell-csm/values-startx.yaml
Values files
Example values files shipped with the chart, to use with helm install -f <file> :
- startx : context
startx/default/infra; againstvalues.yaml: differ on 23 keys, by top-level key:project(6),operator(5),context(4),csm(4), ... (see values-startx.yaml) - startx_noinfra : context
startx/default/infra; againstvalues-startx.yaml: differ oncsm.controller.infra_enabled(true → false),csm.node.infra_enabled(true → false),operator.subscription.operator.config.infra(true → false) (see values-startx_noinfra.yaml) examples/argocd/: 5 example manifest(s) (see the ArgoCD or usage sections)
helm install cluster-dell-csm startx/cluster-dell-csm -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-dell-csm/values-startx.yaml
Values dictionary
context values dictionary
| Key | Default | Description |
|---|---|---|
| context.scope | myscope | Name of the global scope for this application |
| context.cluster | default | Name of the cluster running this application |
| context.environment | myenv | Name of the environment (dev, factory, preprod, prod) |
| context.component | mycomponent | Component name of this application |
| context.app | default-dell-csm | Application name |
| context.version | 1.13.2 | Version name of this application |
externalSecretDefaults values dictionary
| Key | Default | Description |
|---|---|---|
| externalSecretDefaults.apiVersion | external-secrets.io/v1 | API version of the ExternalSecret CRD |
| externalSecretDefaults.refreshInterval | 1h | How often the Secret is refreshed from the external store |
| externalSecretDefaults.secretStoreRef.name | "" | Name of the (Cluster)SecretStore, required as soon as a secret uses externalSecret |
| externalSecretDefaults.secretStoreRef.kind | ClusterSecretStore | Kind of the store (ClusterSecretStore or SecretStore) |
csm values dictionary
| Key | Default | Description |
|---|---|---|
| csm.enabled | false | Enable the creation of the ContainerStorageModule CR |
| csm.hooked | false | Deploy as a Helm/ArgoCD post-sync hook |
| csm.name | powerstore | Name of the CR (the driver reads the array credentials from the Secret <name>-config) |
| csm.driverType | powerstore | Dell CSI driver (csiDriverType): powerstore, powermax, powerflex, isilon (PowerScale) or unity |
| csm.version | v1.18.2 | CSM release deployed by the operator (spec.version), must be supported by the installed operator |
| csm.configVersion | "" | Deprecated driver configuration version (spec.driver.configVersion) for operators older than CSM 1.16 |
| csm.replicas | 2 | Number of replicas of the controller plugin |
| csm.authSecret | "" | Name of the array credentials Secret (empty = <csm.name>-config, always set in the CR) |
| csm.common.image | "" | Custom driver image (empty = image shipped with the operator release) |
| csm.common.imagePullPolicy | IfNotPresent | Pull policy of the driver image |
| csm.common.envs | [] | Environment variables merged in spec.driver.common.envs (operator defaults apply when empty) |
| csm.dnsPolicy | ClusterFirstWithHostNet | DNS policy of the node plugin daemonset |
| csm.forceRemoveDriver | true | Remove the driver deployment when the CR is deleted |
| csm.csiDriverSpec | {fSGroupPolicy, storageCapacity} | CSIDriver object settings (fSGroupPolicy: ReadWriteOnceWithFSType, storageCapacity: true), null for operator defaults |
| csm.controller.infra_enabled | false | Run the controller plugin on infra nodes (infra nodeSelector and toleration) |
| csm.controller.nodeSelector | {} | Node selector of the controller plugin (ignored when infra_enabled) |
| csm.controller.tolerations | [] | Tolerations of the controller plugin (ignored when infra_enabled) |
| csm.controller.envs | [] | Environment variables merged in spec.driver.controller.envs |
| csm.node.infra_enabled | false | Let the node plugin run on infra nodes too (adds the infra toleration, no nodeSelector) |
| csm.node.nodeSelector | {} | Node selector of the node plugin |
| csm.node.tolerations | [] | Tolerations of the node plugin (ignored when infra_enabled) |
| csm.node.envs | [] | Environment variables merged in spec.driver.node.envs |
| csm.sideCars | [] | CSI sidecar overrides rendered in spec.driver.sideCars (raw list) |
| csm.modules | [] | CSM modules rendered in spec.modules (raw list): `replicati |
Deploy cluster-dell-csm with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-dell-csm 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 chartcluster-dell-csm is pinned at v21.3.418 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