Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to make the CCP available to a web-server container #119

Open
nclsclsn opened this issue Sep 20, 2022 · 2 comments
Open

Best way to make the CCP available to a web-server container #119

nclsclsn opened this issue Sep 20, 2022 · 2 comments
Milestone

Comments

@nclsclsn
Copy link

Hello,

Thanks for the operator, it's an amazing tool to deploy Hyperledger Fabric on Kubernetes!

We have created a web server to relay client requests to the network and want to make it a k8s deployment with a few replicas to handle the load.
The container is stateless but it needs to have access to up-to-date CCP.
What's the best way to get this information?
I could use the operator from my host to dump the CCP then mount it to the deployment but I'm afraid this information could become inaccurate as Kubernetes reallocate pods in the cluster.

Any views?
Thanks!

@adityajoshi12
Copy link
Contributor

You can mount the CCP as configmap to your application, also pod reallocation should have not impact on the application if you are using istio with FQDN

@dviejokfs dviejokfs added this to the v1.8.1 milestone Nov 1, 2022
@dviejokfs
Copy link
Contributor

@nclsclsn
Get a network config and then create a secret on Kubernetes; then you can mount it as @adityajoshi12 says to the pod.

Having an up-to-date configuration would be as easy as re-executing the script to fetch the most up-to-date network config, update the secret and restart the pod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants