PIVT icon indicating copy to clipboard operation
PIVT copied to clipboard

How can we deploy hlf-kube on rancher

Open hsoltani opened this issue 5 years ago • 3 comments

I'm trying to deploy hlf-kube in rancher but I wonder how to implement init.sh command (./init.sh ./samples/simple/ ./samples/chaincode/) before running pods. How can I add crypto-config files and secrets in rancher?

hsoltani avatar Sep 27 '20 08:09 hsoltani

I dont think you need to do anything specific for Rancher. just setup your Kubernetes cluster with Rancher, and everything should work out of the box.

raftAtGit avatar Sep 27 '20 17:09 raftAtGit

I'm trying to deploy hlf-kube as a new catalog in rancher and then launching the helm chart from the apps section so It's independent from the kubernetes cluster. Is it possible to write init.sh as a config file in hlf-kube helm chart? I'm launching hlf-kube in rancher but in my workload, the pods are down because config files and private keys (such as cert.pem) couldn't find.

hsoltani avatar Sep 28 '20 07:09 hsoltani

dont you have direct access to Kubernetes cluster? these Helm charts are meant to be used with CLI.

init.sh script does not interact with K8S cluster, it just creates necessary stuff and copies them to hlf-kube folder. you can possibly still use the populated hlf-kube folder in Rancher UI, you need to also somehow provide the values files to helm chart samples/simple/network.yaml, samples/simple/crypto-config.yaml.

later you need to run Argo flows to populate the Fabric network, which can be more tricky

raftAtGit avatar Sep 28 '20 08:09 raftAtGit