Adding a new storageclass¶
As storageclass templates vary as per requirements and cloud provider specifications, this guide will help in using a new storageclass which is not supported by Hyperledger Bevel
- Adding a new storage class for Hyperledger Fabric
- Adding a new storage class for R3-Corda
- Adding a new storage class for Hyperledger Indy
- Adding a new storage class for Quorum
Adding a new storage class for Hyperledger Fabric¶
To add a new storageclass for Hyperledger Fabric, perform the following steps:
- Add the new storageclass template
sample_sc.tpl
, underplatforms/hyperledger-fabric/configuration/roles/create/storageclass/templates
withmetadata.name
(storageclass name) as the variablesc_name
. For example, - Mention the template file, which you created above, under
platforms/hyperledger-fabric/configuration/roles/create/storageclass/vars/main.yaml
with a variable reference. For example, - Set the
type
variable tosample-sc
(variable created in step 2) in the taskCreate Storage Class value file for orderers
andCreate Storage Class value file for Organizations
, located inplatforms/hyperledger-fabric/configuration/roles/create/storageclass/tasks/main.yaml
Adding a new storage class for R3-Corda¶
To add a new storageclass for R3-Corda, perform the following steps:
- Add the new storageclass template
sample_sc.tpl
, underplatforms/r3-corda/configuration/roles/create/k8_component/templates
withmetadata.name
(storageclass name) as the variablecomponent_name
. For example, - Mention the template file, which you created above, under
platforms/r3-corda/configuration/roles/create/k8_component/vars/main.yaml
with a variable reference. For example, - Set the
component_type
andcomponent_name
variable tosample-sc
(variable created in step 2) in the taskCreate storageclass
, located inplatforms/r3-corda/configuration/roles/create/storageclass/tasks/main.yaml
Adding a new storage class for Hyperledger Indy¶
To add a new storageclass for Hyplerledger Indy, perform the following steps:
- Add the new storageclass template
sample_sc.tpl
, underplatforms/hyperledger-indy/configuration/roles/create/k8_component/templates
withmetadata.name
(storageclass name) as the variablecomponent_name
. For example, - Mention the template file, which you created above, under
platforms/hyperledger-indy/configuration/roles/create/k8_component/vars/main.yaml
with a variable reference. For example, - Set the
component_name
variable tosample-sc
(variable created in step 2) in the taskCreate Storage Class
, located inplatforms/hyperledger-indy/configuration/deploy-network.yaml
Adding a new storage class for Quorum¶
To add a new storageclass for Quorum, perform the following steps:
- Add the new storageclass template
sample_sc.tpl
, underplatforms/quorum/configuration/roles/create/k8_component/templates
withmetadata.name
(storageclass name) as the variablecomponent_name
. For example, - Mention the template file, which you created above, under
platforms/quorum/configuration/roles/create/k8_component/vars/main.yaml
with a variable reference. For example, - Set the
component_type
andcomponent_name
variable tosample-sc
(variable created in step 2) in the taskCreate storageclass
, located inplatforms/quorum/configuration/roles/create/storageclass/tasks/main.yaml