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

DinD support in Bevel to maintain support of internal chaincode under new Kubernetes versions #2372

Open
icordoba opened this issue Sep 15, 2023 · 2 comments
Labels
enhancement New feature or request fabric Related to the Hyperledger Fabric DLT Platform good-first-issue Good for newcomers help wanted Extra attention is needed

Comments

@icordoba
Copy link
Contributor

icordoba commented Sep 15, 2023

Is your feature request related to a problem? Please describe.
Many Kubernetes cloud services, such as Microsoft AKS, have stopped supporting docker sock interconnection. This is required in the process of internal chaincode deployment, so as users upgrade the Kubernetes version, eventually, chaincode deploment stops working.
Hyperledger supports DinD (Docker in Docker) for this, so a configuration change is required in peer nodes

        - name: CORE_VM_ENDPOINT
#          value: unix:///host/var/run/docker.sock
          value: tcp://docker:2375

Adicionally, when tcp value is configured, a Docker special PV, PVC and Docker pod instance need to be deployed for chaincode to work (sample yaml files attached)

Describe the solution you'd like
Solution is included in this feature request but it needs to be automated via a configuration parameter in Bevel that allows user to determine if he wants unix or tcp connection to core Docker.

Describe alternatives you've considered
Only alternative is external chaincode, but has implications, specially in Fabric 2.2.2

Additional context
I have successfully changed bevel files to support this, but in a permanent fashion, so I need to manually deploy Docker yaml files. Also i can't now use older Kubernetes that support unix:/// CORE_VM_ENDPOINT value.

Docker DinD deployment files.zip

@icordoba icordoba added the enhancement New feature or request label Sep 15, 2023
@ashii1994
Copy link

any solution for this , when we are using cluster 1.27 + how can we deploy chaincode in fabric @icordoba @atoulme @gezero @shemnon @ajsutton

@sownak sownak added help wanted Extra attention is needed good-first-issue Good for newcomers fabric Related to the Hyperledger Fabric DLT Platform labels May 30, 2024
@ex-aswath-edx
Copy link

ex-aswath-edx commented Jun 3, 2024

Screenshot from 2024-06-03 11-44-22
hi when i try with this changes in my bevel , iam facing issue , @icordoba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fabric Related to the Hyperledger Fabric DLT Platform good-first-issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants