COSI Driver installation using Operator

The COSI Driver for Dell ObjectScale can be deployed by using the CSM Operator.

  1. Set up a Kubernetes cluster following the official documentation.
  2. Proceed to the Prerequisites.
  3. Complete the driver installation.

Operator Installation

To deploy the Operator, follow the instructions available here.

Steps

  1. Ensure that you have created the namespace where you want to install the driver.
kubectl create namespace dell-cosi
  1. Create a new file called secret.yaml with the contents of the configuration file. Edit the file with parameters specific to the ObjectScale instance.
cat <<EOF > secret.yaml
connections:
  - objectscale:
      id: objectscale
      credentials:
        username: namespaceadmin
        password: namespaceadminpassword
      namespace: ns1
      mgmt-endpoint: https://mgmt-endpoint-address:4443
      emptyBucket: true
      protocols:
        s3:
          endpoint: https://s3-endpoint-address:9021
      tls:
        insecure: true
EOF
  1. Create a secret by running
kubectl create secret generic cosi-config -n dell-cosi --from-file=config.yaml=secret.yaml
  1. Create a Custom Resource (CR) for COSI using either minimal resource file or the more configurable sample. Save one of the following YAML blocks to a file.
Minimal Configuration
Detailed Configuration
  1. Create the COSI CR using the CR.
    kubectl create -f csm-cosi.yaml
    
    You should see the following output:
    containerstoragemodule.storage.dell.com/cosi created
    
  2. Validate the installation
    # kubectl get csm -A
    NAMESPACE   NAME   CREATIONTIME   CSIDRIVERTYPE   CONFIGVERSION   STATE
    dell-cosi   cosi   16s            cosi            v1.0.0          Succeeded
    
    # kubectl -n dell-cosi get pods
    NAME                   READY   STATUS    RESTARTS   AGE
    cosi-59fbff5ff-m2j5x   2/2     Running   0          32s
    cosi-59fbff5ff-w2sxm   2/2     Running   0          32s