question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cloud_provider value for unsupported CSP

See original GitHub issue

I’d like to test the use of the BAF with Hyperledger Fabric on an IBM Cloud Kubernetes Cluster (IKS). However, the cloud_provider property in network.yaml only supports one of aws, azure, gcp or minikube. Is it possible to deploy BAF with Fabric to IKS if I leave this value blank?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
uqixcommented, May 13, 2022

Tips about adding cloud_provider for private k8s.

Notes:

  • replace coollu with private or something, it’s just a enum value
  • we use plain k8s sc, adjust as needed
3 files changed, 10 insertions(+), 1 deletion(-)
.../roles/create/storageclass/templates/coollu_sc.tpl              | 7 +++++++
.../configuration/roles/create/storageclass/vars/main.yaml         | 2 ++
platforms/network-schema.json                                      | 2 +-

new file   platforms/hyperledger-fabric/configuration/roles/create/storageclass/templates/coollu_sc.tpl
@@ -0,0 +1,7 @@
+apiVersion: storage.k8s.io/v1
+kind: StorageClass
+metadata:
+  name: {{ sc_name }}
+provisioner: kubernetes.io/no-provisioner
+volumeBindingMode: WaitForFirstConsumer
+reclaimPolicy: Retain

modified   platforms/hyperledger-fabric/configuration/roles/create/storageclass/vars/main.yaml
@@ -15,3 +15,5 @@ sc_templates:
   digitalocean-peer: digitalocean_sc.tpl
   oke-orderer: oke_sc.tpl
   oke-peer: oke_sc.tpl
+  coollu-orderer: coollu_sc.tpl
+  coollu-peer: coollu_sc.tpl

modified   platforms/network-schema.json
@@ -185,7 +185,7 @@
             "k8s":{ "$ref":"#/definitions/shared_k8s"},
             "vault":{ "$ref":"#/definitions/shared_vault"},
             "gitops":{ "$ref":"#/definitions/shared_gitops"},
-            "cloud_provider":{ "type": "string","enum": ["aws","aws-baremetal", "azure","gcp","minikube"]},
+            "cloud_provider":{ "type": "string","enum": ["aws","aws-baremetal", "azure","gcp","minikube","coollu"]},
             "gcp":{},
             "azure":{},
             "minikube":{},
1reaction
sownakcommented, Sep 8, 2020

you can define a new value for cloud_provider for IBM, and then you will have to update the code for the required storage class, and any other changes needed to support IBM Kubernetes cluster.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transfer Azure subscriptions between subscribers and CSPs
This article provides high-level steps used to transfer Azure subscriptions to and from Cloud Solution Provider (CSP) partners and their ...
Read more >
Cloud Service Providers (CSPs) Explained - BMC Software
In simple terms, the CSP makes cloud services available to consumers. According to the NIST Cloud Computing Reference Architecture, NIST SP 500 ...
Read more >
What is a CSP and what is a Custom OMA-URI ... - View Blog
CSP stands for Configuration Service Provider. ... CSP settings accept some sort of data type value to enable or disable the setting.
Read more >
Windows CSP: Simple Tips That'll Save Your Bacon
CSP stands for configuration service provider. A Windows CSP is used to deliver managed configuration settings or manage features on Windows 10 ...
Read more >
Cloud security and data protection: What enterprises need to ...
While all the CSPs offer crypto SDKs that support 256-bit GCM-mode AES, the report noted that other formats are largely unsupported. CSPs also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found