Add a new StorageClass
Storageclass templates vary as per requirements and cloud provider specifications, this guide will help in adding and using a new storageclass in Hyperlegder Bevel.
Steps:
-
Add the storageclass provisioner as per cloud provider specifications, under
platforms/shared/charts/bevel-storageclass/templates/_helpers.tpl
.For example, storageclass for{{- define "provisioner" -}} {{- if eq .Values.global.cluster.provider "aws" }} provisioner: kubernetes.io/aws-ebs {{- else if eq .Values.global.cluster.provider "gcp" }} provisioner: pd.csi.storage.gke.io {{- else if eq .Values.global.cluster.provider "minikube" }} provisioner: k8s.io/minikube-hostpath {{- else if eq .Values.global.cluster.provider "azure" }} provisioner: disk.csi.azure.com {{- end -}} {{- end -}}
cloud_provider_x
with requiredprovisioner_x
should be added as -
Update the
cloud_provider
enum underplatforms/network-schema.json
file with the new cloud provider name. For example, -
Use the the cloud provider in your network configuration file
cloud_provider
field under organization section.