hpe-cosi-driver

by HPE Storage

Helm chartv2.0.0App 2.0.0Apache-2.0Verified publisherOfficial

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.

Prerequisites

  1. Kubernetes version v1.25 or later
  2. Helm version v3.11 or later
  3. 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.

KeyTypeDefaultDescription
accessManagement.glcpCommonCloudstring"global.api.greenlake.hpe.com"HPE GLCP common cloud URL
accessManagement.proxystring""Proxy url if any to be used
componentNamestring"container-object-storage-interface"
containers.cosiDriver.imagestring"quay.io/hpestorage/cosi-driver:v2.0.0"Fully qualified registry path of cosiDriver
containers.cosiDriver.imagePullPolicystring"IfNotPresent"cosiDriver image pull policy
containers.cosiDriver.namestring"hpe-cosi-driver"Name of the driver's container within the deployment
containers.sideCar.imagestring"registry.k8s.io/sig-storage/objectstorage-sidecar:v0.2.2"Fully qualified registry path of sidecar
containers.sideCar.imagePullPolicystring"IfNotPresent"sideCar image pull policy
containers.sideCar.namestring"hpe-cosi-provisioner-sidecar"Name of the driver's side car container within the deployment
containers.sideCar.verbosityLevelint5Specifies the verbosity of the logs that will be printed by the sidecar container
deployment.namestring"hpe-cosi-provisioner"The name of the driver's Kubernetes deployment
fullnameOverridestring"hpe-cosi-driver"Name of deployment
podEvictionTolerationint300Pod Toleration time in seconds
preUpgradeHookEnabledbooltrueEnable the pre-upgrade hook to delete deployment before upgrade
regSecretNamestring""Secret that contains the private image registry credentials to pull the cosiDriver image
resourcesobject{}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

  1. 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
  1. 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthpe-cosi-driver is pinned at v2.0.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