cluster-dell-csm

by startxfr

Helm chartv21.3.418App 1.13.2GPL-3.0-or-laterVerified publisher

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 Secret named <csm.name>-config (powerstore-config by default) in the driver namespace, holding the Dell arrays: configuration under the config key. The chart renders it from arraySecret.config or through an ExternalSecret (see External secrets); it can also be created outside of the chart. The CR always carries authSecret, so the same name is used whatever the driver (the operator would otherwise look for <name>-config on PowerStore and PowerFlex, <name>-creds on PowerMax, PowerScale and Unity); PowerFlex, PowerScale and Unity use the same config key 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: iscsid and multipathd services for iSCSI, multipathd and FC zoning for Fibre Channel, unique host NQN and the nvme reconnect and round-robin settings for NVMe/TCP or NVMe/FC, NFS client for NFS volumes (see the Dell CSM documentation)
  • Access to the certified-operators catalog 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 (CSM v1.18.2, 2 controller replicas) when csm.enabled is set
  • Deploy the array credentials Secret powerstore-config from arraySecret.config when arraySecret.enabled is set
  • Deploy the StorageClass powerstore-xfs and the VolumeSnapshotClass powerstore-snapshot when storageClasses.enabled and volumeSnapshotClasses.enabled are set
  • The operator subscription and namespace are managed separately via the operator and project sub-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; against values.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; against values-startx.yaml: differ on csm.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

KeyDefaultDescription
context.scopemyscopeName of the global scope for this application
context.clusterdefaultName of the cluster running this application
context.environmentmyenvName of the environment (dev, factory, preprod, prod)
context.componentmycomponentComponent name of this application
context.appdefault-dell-csmApplication name
context.version1.13.2Version name of this application

externalSecretDefaults values dictionary

KeyDefaultDescription
externalSecretDefaults.apiVersionexternal-secrets.io/v1API version of the ExternalSecret CRD
externalSecretDefaults.refreshInterval1hHow 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.kindClusterSecretStoreKind of the store (ClusterSecretStore or SecretStore)

csm values dictionary

KeyDefaultDescription
csm.enabledfalseEnable the creation of the ContainerStorageModule CR
csm.hookedfalseDeploy as a Helm/ArgoCD post-sync hook
csm.namepowerstoreName of the CR (the driver reads the array credentials from the Secret <name>-config)
csm.driverTypepowerstoreDell CSI driver (csiDriverType): powerstore, powermax, powerflex, isilon (PowerScale) or unity
csm.versionv1.18.2CSM 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.replicas2Number 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.imagePullPolicyIfNotPresentPull policy of the driver image
csm.common.envs[]Environment variables merged in spec.driver.common.envs (operator defaults apply when empty)
csm.dnsPolicyClusterFirstWithHostNetDNS policy of the node plugin daemonset
csm.forceRemoveDrivertrueRemove 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_enabledfalseRun 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_enabledfalseLet 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcluster-dell-csm is pinned at v21.3.418 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