storage-provisioner
by kmatsebora
Helm chart for provisioning storage definition (PersistentVolumeClaim and PersistentVolume objects).
About this chart
Storage provisioner
Helm chart for provisioning storage definition (PersistentVolumeClaim and PersistentVolume objects).
Can be useful in the following cases:
- When you want to separate storage and application management.
- When you want to bind
PersistenVolumewith an already existing volume handle (for instance manually created Longhorn volume.)
Configuration
volumes:
# Name of PVC and PV
- name: # media
# Size of volume
size: # 400Gi
# Name of storage class
storageClassName: # longhorn-large
# Name of Longhorn pre-created volume
volumeHandle: # media-storage
# List of volume access modes
accessModes: []
pv: # Optional, need to specify only if do not want to create pv, by default true
enabled: # true
pvc: # Optional, need to specify only if do not want to create pv, by default true
enabled: # true
Example
volumes:
- accessModes:
- ReadWriteMany
name: media
size: 400Gi
storageClassName: longhorn-large
volumeHandle: media-storage
- accessModes:
- ReadWriteMany
name: qbittorrent-downloads
size: 10Gi
storageClassName: longhorn-fast
volumeHandle: downloads
- accessModes:
- ReadWriteOnce
name: jellyfin-cache
size: 5Gi
storageClassName: longhorn-fast
volumeHandle: jellyfin-cache
Usage
Add helm repository first:
helm repo add kostiantyn-matsebora https://kostiantyn-matsebora.github.io/helm-charts/
Install/upgrade helm chart using your custom values:
# oauth2-proxy
helm upgrade storage kostiantyn-matsebora/storage-provisioner --install --values ./custom-values.yaml
Contributing
If you experience any issues, have a question or a suggestion, or if you wish to contribute, feel free to open an issue or start a discussion.
License
MIT License
Deploy storage-provisioner with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has storage-provisioner 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 chartstorage-provisioner is pinned at v1.0.2 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