Deprecation of Docker Runtime in Kubernetes - No access to local docker socket #docker #hyperledger-fabric #fabric
On Apr 28, 2021, at 3:50 AM, Gari Singh <gari.r.singh@...> wrote:Using DinD in the short term should work ok, but be aware that you will need to run the Dind container with elevated privileges which can be problematic in many environments. The best course of action is to plan for an upgrade and use a launcher.On Tue, Apr 27, 2021 at 3:52 PM Chris Gabriel <alaskadd@...> wrote:Also, I forgot to mention that when running on Kubernetes I set the environment variable for the CORE_VM_ENDPOINT to “http://localhost:2375” and not unix:///var/run/docker.sockThere is more detail on this if you examine the CORE VM ENDPOINT section of core.yamlHi Ramesh,I am still looking into the ramifications of the Deprecation of Docker Runtime in Kubernetes for my network. I’ll post what I find out.As far as your second question, you can do either. I am currently running HLF 2.3 on Kubernetes 1.20.2 with dind and all works fine. I plan on migrating this to run the external chaincode builders in the near future however.Hope this helps,ChrisHello Everyone,
Any further updates on this issue? I am facing the same issue, currently using HLF 1.4 version on Kubernetes 1.18 version and trying to upgrade kubernetes version to 1.19 version.
Which is the best way to implement HLF setup on kubernetes latest versions.
1. Upgrading to 2.x versions using external chaincode builders and chaincode as an external service
2. Or via dind (Docker-in-Docker)
Also, I forgot to mention that when running on Kubernetes I set the environment variable for the CORE_VM_ENDPOINT to “http://localhost:2375” and not unix:///var/run/docker.sockThere is more detail on this if you examine the CORE VM ENDPOINT section of core.yamlOn Apr 27, 2021, at 2:31 PM, Chris Gabriel via lists.hyperledger.org <alaskadd=gmail.com@...> wrote:Hi Ramesh,I am still looking into the ramifications of the Deprecation of Docker Runtime in Kubernetes for my network. I’ll post what I find out.As far as your second question, you can do either. I am currently running HLF 2.3 on Kubernetes 1.20.2 with dind and all works fine. I plan on migrating this to run the external chaincode builders in the near future however.Hope this helps,ChrisHello Everyone,
Any further updates on this issue? I am facing the same issue, currently using HLF 1.4 version on Kubernetes 1.18 version and trying to upgrade kubernetes version to 1.19 version.
Which is the best way to implement HLF setup on kubernetes latest versions.
1. Upgrading to 2.x versions using external chaincode builders and chaincode as an external service
2. Or via dind (Docker-in-Docker)
On Apr 27, 2021, at 2:31 PM, Chris Gabriel via lists.hyperledger.org <alaskadd=gmail.com@...> wrote:Hi Ramesh,I am still looking into the ramifications of the Deprecation of Docker Runtime in Kubernetes for my network. I’ll post what I find out.As far as your second question, you can do either. I am currently running HLF 2.3 on Kubernetes 1.20.2 with dind and all works fine. I plan on migrating this to run the external chaincode builders in the near future however.Hope this helps,ChrisHello Everyone,
Any further updates on this issue? I am facing the same issue, currently using HLF 1.4 version on Kubernetes 1.18 version and trying to upgrade kubernetes version to 1.19 version.
Which is the best way to implement HLF setup on kubernetes latest versions.
1. Upgrading to 2.x versions using external chaincode builders and chaincode as an external service
2. Or via dind (Docker-in-Docker)
On Apr 27, 2021, at 1:39 PM, ramesh.bobbala1990@... wrote:Hello Everyone,
Any further updates on this issue? I am facing the same issue, currently using HLF 1.4 version on Kubernetes 1.18 version and trying to upgrade kubernetes version to 1.19 version.
Which is the best way to implement HLF setup on kubernetes latest versions.
1. Upgrading to 2.x versions using external chaincode builders and chaincode as an external service
2. Or via dind (Docker-in-Docker)
Hello Everyone,
Any further updates on this issue? I am facing the same issue, currently using HLF 1.4 version on Kubernetes 1.18 version and trying to upgrade kubernetes version to 1.19 version.
Which is the best way to implement HLF setup on kubernetes latest versions.
1. Upgrading to 2.x versions using external chaincode builders and chaincode as an external service
2. Or via dind (Docker-in-Docker)
Correct! With HLF v2.x external builders and chaincode as an external service, we can easily migrate to remove the dependency on usage of docker socket. That is definitely one of the ways!
Apart from this, I wanted a generic call from HLF maintainers on this topic - as it would be affecting all the HLF users to migrate from internal builders to chaincode as an external service. I consider that it might be simple, but it incurs cost in production stages and also multiple channels of communication if the setup is hosted on cloud compared to on-prem.
I am not sure of the exact deadline we should be looking for from Kubernetes on this, but I think some sort of modification or highlight is required for sure - for everyone to be supported and migrated with ease.
Regards,
Chintan Rajvir
I have also raised a related JIRA request. It would be really helpful to get your feedback in understanding the plan of support for HLF v1.4.x as well HLF v2.x (chaincode as an internal service) - as this would be breaking change for the people to completely move to support just chaincode as an external service.
Regards,
Chintan Rajvir
Apart from this, I wanted a generic call from HLF maintainers on this topic - as it would be affecting all the HLF users to migrate from internal builders to chaincode as an external service. I consider that it might be simple, but it incurs cost in production stages and also multiple channels of communication if the setup is hosted on cloud compared to on-prem.
I am not sure of the exact deadline we should be looking for from Kubernetes on this, but I think some sort of modification or highlight is required for sure - for everyone to be supported and migrated with ease.
Regards,
Chintan Rajvir
Hi Team,
With us marching slowly towards end-of-life for Docker as a runtime environment in Kubernetes, and containerd turning out to be default for latest Kubernetes version on most cloud providers, I am thinking about the process of "chaincode image building and container creation" using the HLF peer.
For HLF v1.4.x and HLF v2.x with internal builders, the chaincode containers could no longer be simply created with the help of /var/run/docker.sock file - as the access to it will be denied with the new "containerd" runtime in Kubernetes.
I wanted to learn about how are we planning in supporting chaincode instantiation through peer (both, in HLF v1.4 or in HLF v2), once the old versions of Kubernetes reach end-of-life and existing users will be looking to upgrade to these latest Kubernetes versions.
Regards,
Chintan Rajvir
With us marching slowly towards end-of-life for Docker as a runtime environment in Kubernetes, and containerd turning out to be default for latest Kubernetes version on most cloud providers, I am thinking about the process of "chaincode image building and container creation" using the HLF peer.
For HLF v1.4.x and HLF v2.x with internal builders, the chaincode containers could no longer be simply created with the help of /var/run/docker.sock file - as the access to it will be denied with the new "containerd" runtime in Kubernetes.
I wanted to learn about how are we planning in supporting chaincode instantiation through peer (both, in HLF v1.4 or in HLF v2), once the old versions of Kubernetes reach end-of-life and existing users will be looking to upgrade to these latest Kubernetes versions.
Regards,
Chintan Rajvir