-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(helm): move dind to sidecar #3842
base: master
Are you sure you want to change the base?
Conversation
I think this may fix an issue i'm seeing sometimes with our runners. In some jobs, we were seeing this error message in the "Initialize Containers" workflow step:
|
@chadxz This exactly the issue we were seeing and it helped us fix it. |
I tried using this but realized it conflicts with my manual dind setup in values.yaml. However I was able to move my dind container from “containers” to “initContainers” and set ‘retryPolicy: Always’ to replicate this behavior. worked! |
Probably the case for most people. It is in the custom dind for us as well but I believe it should be the default option actually |
Run
dind
container as a SidecarCurrently, in
dind
mode we run 2 containers in the pod. This results in them having their own lifecycles. In the case ofdind
this could lead to issues as the process in therunner
container depend on the docker socket from thedind
container. We hit that multiple times were we wanted to wait for jobs to complete and the runner container stays alive as we handle the SIGTERM manually butdind
dies and the jo fails. When running as a Sidecar containerdind
stays alive as long as the pod is alive and we don't need to do custom SIGTERM handling there.Since 1.29 Sidecars are enabled by default so this PR moves the
dind
container as a Sidecar if the version is above 1.29.