Dind for k8s and others #5696
Replies: 1 comment 1 reply
-
|
I can't really tell you something about the general things of your point, so I just comment on this paragraph:
Personally I don't really like to have "problem-specific" solutions. So I'd rather keep this general (similar to how it's now). But I could also imagine that this is a problem many users have, so maybe there are many people suggesting this as well. I'm open for the discussion of course. About the actual implementation I think that for the docker backend you just have to give it the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was having an issue with running Dind with the k8s backend when having to use testcontainers, since it really needs localhost because of the many dynamic ports that are needed.
There is a current issue #3977 where the discussion about sidecars have begun, and I created a draft PR #5666 that has added support for it.
I am looking for a discussion on the topic, and I am willing to put in some time on the work.
BUT, I was thinking if this should be something more native, so that we could create a "feature" (or something else) one could enable in project settings, that allows priviledged dind, but not priviledged in generel.
This feature should then be configured from env variables on the server, and could work different for the different backends.
On the k8s backend, it would then run it as a sidecar, mount the default volume, and map env variables to point to tls certs and everything, really lowering the barrier of entry, and I really believe docker within CI should be a first class citizen since so many different tooling these days do tests, builds and the like in this manner.
I have also been looking into if podman was a better solution, but I know both would probably be needed, but there is a nice guide (albiet a few years old) on how to run podman in k8s in different privileges.
Suggested way
current way
Beta Was this translation helpful? Give feedback.
All reactions