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_xwith requiredprovisioner_xshould be added as -
Update the
cloud_providerenum underplatforms/network-schema.jsonfile with the new cloud provider name. For example, -
Use the cloud provider in your network configuration file
cloud_providerfield under organization section.