hpe-cosi-driver
by HPE Storage
A Helm chart for installing the HPE COSI Driver for Kubernetes
About this chart
HPE COSI Driver for Kubernetes Helm Chart
The HPE COSI Driver for Kubernetes leverages Hewlett Packard Enterprise object storage platforms to provide scalable S3 compatible object storage for workloads running on Kubernetes. Currently supported object storage platforms include HPE Alletra Storage MP X10000.
Release Highlights
The HPE COSI Driver for Kubernetes Helm chart is the primary delivery vehicle for the HPE COSI Driver.
- All resources for the HPE COSI Driver is available on HPE Storage Container Orchestrator Documentation (SCOD).
- Visit the latest release on SCOD to learn what's new in this chart.
- The release notes for the HPE COSI Driver are hosted on GitHub.
Prerequisites
- Kubernetes version v1.25 or later
- Helm version v3.11 or later
- HPE Alletra Storage MP X10000 object storage details:
- Backend protocol used: S3
- Features available to the COSI driver: Bucket creation and deletion with support for compression, locking, and versioning; granting and revoking bucket access
Configuration and Installation
The following parameters are supported by the Helm chart. During normal circumstances, these can be left at their default values.
| Key | Type | Default | Description |
|---|---|---|---|
| accessManagement.glcpCommonCloud | string | "global.api.greenlake.hpe.com" | HPE GLCP common cloud URL |
| accessManagement.proxy | string | "" | Proxy url if any to be used |
| componentName | string | "container-object-storage-interface" | |
| containers.cosiDriver.image | string | "quay.io/hpestorage/cosi-driver:v2.0.0" | Fully qualified registry path of cosiDriver |
| containers.cosiDriver.imagePullPolicy | string | "IfNotPresent" | cosiDriver image pull policy |
| containers.cosiDriver.name | string | "hpe-cosi-driver" | Name of the driver's container within the deployment |
| containers.sideCar.image | string | "registry.k8s.io/sig-storage/objectstorage-sidecar:v0.2.2" | Fully qualified registry path of sidecar |
| containers.sideCar.imagePullPolicy | string | "IfNotPresent" | sideCar image pull policy |
| containers.sideCar.name | string | "hpe-cosi-provisioner-sidecar" | Name of the driver's side car container within the deployment |
| containers.sideCar.verbosityLevel | int | 5 | Specifies the verbosity of the logs that will be printed by the sidecar container |
| deployment.name | string | "hpe-cosi-provisioner" | The name of the driver's Kubernetes deployment |
| fullnameOverride | string | "hpe-cosi-driver" | Name of deployment |
| podEvictionToleration | int | 300 | Pod Toleration time in seconds |
| preUpgradeHookEnabled | bool | true | Enable the pre-upgrade hook to delete deployment before upgrade |
| regSecretName | string | "" | Secret that contains the private image registry credentials to pull the cosiDriver image |
| resources | object | {} | Resources such as CPU limits, Memory limits, CPU request and Memory request applied to the COSI driver and the COSI sidecar individually. |
Learn how to specify resource limits and requests in the official documentation on kubernetes.io.
Installation Steps
- Create the custom resource definitions (CRDs) for the COSI driver API resources and deploy the object storage controller.
kubectl kustomize "github.com/kubernetes-sigs/container-object-storage-interface//?ref=release-0.2" \
| sed -e "s/container-object-storage-system/<namespace>/g" \
| kubectl apply -f -
Note: Replace <namespace> with the installation Namespace.
Note: The SIG Storage resources can be deployed in any "namespace", and the HPE COSI Driver can also be deployed in any namespace. Refer to the known limitations for more details.
Note: During an Object Storage Controller upgrade, existing COSI controller resources are not automatically replaced. This may result in duplicate controller Deployments and Pods. To avoid this, delete any existing controller resources before deploying the new version of the COSI controller.
kubectl delete -k github.com/kubernetes-sigs/container-object-storage-interface-controller
- Installing the chart.
To install the chart with the name "my-hpe-cosi-driver", follow this example.
Add HPE helm repo:
helm repo add hpe-storage https://hpe-storage.github.io/co-deployments/
helm repo update
Install the latest chart:
helm install -n default my-hpe-cosi-driver hpe-storage/hpe-cosi-driver
Monitor the deployment of the COSI driver Pods:
kubectl -n default get pods -w
Using
Refer to the HPE COSI Driver for Kubernetes documentation on SCOD. Also, it's helpful to be familiar with object storage management in Kubernetes prior to deploying workloads utilizing object storage.
License
This is open source software licensed using the Apache License 2.0. Please see LICENSE for details.
Deploy hpe-cosi-driver with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hpe-cosi-driver 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 charthpe-cosi-driver is pinned at v2.0.0 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