Longhorn
This optional service is not included in Cloud-of-the-Box. It has to be deployed and maintained at the customers own risk.
This deployment is responsible for Longhorn. For more information please refer to the respective Helm chart .
Longhorns provides high available persistent storage to Kubernetes and is used on control nodes.
Databases for Openstack Service (e.g. keystone-db) have longhorn backed Storage.
Deplyoment
To deploy, change into the appropriate overlay and run kustomize build --enable-helm | kubectl apply -f -
As this requires CRDs the command has to be run twice.
Typical Operations
Make sure all longhorn pods are running.
Verification of longhorn storage class.
This Deployment provides a test overlay, which is meant to be used after the deployment of longhorn to verify its operation.
To deploy, change into the appropriate overlay and run kustomize build | kubectl apply -f -
Do not forget to delete the test deployment afterwards.
kustomize build . | k delete -f -
The test deployment creates a namespaces longhorn-test and deploys the following components:
| Kubernetes Resource | Description |
|---|---|
| Deployment | nginx |
| PersistentVolumeClaim | pvc with storageclass longhorn |
If longhorn works as intended, you should be able to see the attached pvc from the StorageClass longhorn in the nginx pod.
Changing component releases
To upgrade longhorn, please visit the official documentation and upgrade guides.