ganrad / Az-DevOps-Agent-On-AKS

Build and deploy Azure DevOps Pipeline agent in a container on Azure Kubernetes Service. Elastically scale the DevOps build infrastructure.
42 stars 49 forks source link

Socket issue after migrating aks cluster to 1.19 version which has containerd as runtime #7

Closed krupakar-code closed 3 years ago

krupakar-code commented 3 years ago

Once the cluster is migrated to 1.19 version which has containerd as the default runtime, the yaml deployment fails as it has volume mounts to /var/run/docker.sock(which will not be present in containerd runtime). Kindly help on the same on how to mount to /var/run/containerd/containerd.sock

ganrad commented 3 years ago

This problem is now resolved. AKS clusters 1.18.8+ use 'Containerd' as the container runtime. With Containerd, it's not possible to leverage the docker engine running on the host to build containers. The updated solution runs dind in a sidecar container within the devops agent pod and performs the container build.

ganrad commented 3 years ago

Closing this issue. Refer to the comments above.