nfdi4plants / DataHUB

This repository may be used to collect issues, bugs or similar regarding the DataPLANT DataHUB.
MIT License
1 stars 3 forks source link

Build docker image suited for kubernetes installation #25

Open Zalfsten opened 4 months ago

Zalfsten commented 4 months ago

Gitlab differentiates between docker and kubernetes installations. For the docker installation all services are packed into a single docker image, whereas the kubernetes installation uses one image per service.

The current DataHUB image is built on top of the many-in-one gitlab image for docker installations. We (as FAIRagro) would like to install DataHUB on kuberenetes, so we would highly appreciate a DataHUB image that is compatible with kubernetes installations. Maybe this could be a sidecar container that works with together with the official gitlab docker images.

j-bauer commented 4 months ago

Creating a sidecar container with the required patches shouldn't be too much of an issue. We'll work on it but it will realistically take a week or two. I will keep you updated.

j-bauer commented 2 months ago

After quite a long summer break for many of us, we are now looking into this again just as an fyi. Here a couple of thoughts:

Sidecar containers are supposed to run alongside the main app container. From the gitlab helm chart I guess we only need a sidecar container for the gitlab chart. We need to take into consideration that, as far as I've understood, the sidecar container needs to deal with rebuilds of the main container - so that might be a bit trickier to implement the patch in a reliable way. Sadly, we don't have a real k8s setup here to test with but I hope a minikube setup will be enough to test/develop. I will keep you updated.

Zalfsten commented 2 months ago

Maybe we can support with our kubernetes cluster at ZALF. But it won't be possible to give you admin access.

j-bauer commented 2 months ago

I wouldn't want it anyway ;-)

It's ok, we'll just setup a small cluster using Rancher. We already have experience with that so that shouldn't take too long.

I would contact you should we have some kubernetes-related questions/issues - you can probably help there.