I am encountering a problem when using kubectl build along with Tilt on my Amazon EKS cluster. The build process works well in my local environment, but when transitioning to EKS, I’m facing issues with mounting the Docker socket in the pod. The error suggests a “FailedMount” for the Docker socket volume, and I suspect it’s related to the underlying container runtime (containerd on EKS).
I am using Tilt for local development, and I have installed the Kubernetes CLI and kubectl_build following the Tilt documentation. My Tiltfile configurations are as follows:
Thankyou very much for your response.
So, what is the solution? What should I do?
Should I mount the docker socket file??
Here is my client-yaml.depl file
There is no docker socket to mount, docker isn’t installed on the hosts.
the kubectl build plugin hasn’t been updated in several years and is no longer compatible with current k8s. I don’t know tilt well enough to offer an alternative. =/
I have a large microservices application, and I want to set up my development environment. While building images, my system lags. I am looking for two solutions:
Hot Reloading: I am using Tilt for this aspect.
Avoid Building Images on My Local Machine: Initially, I considered using kubernetes_build so that when I change the context from local Docker to AWS EKS, the building happens on EKS, not on my local machine. However, this approach doesn’t seem to be working.