I have made a Kubernetes to Docker-compose converter/devolver. It's horrible. It's glorious. (github.com)
from pokexpert30@jlai.lu to selfhosted@lemmy.world on 13 Feb 08:39
https://jlai.lu/post/33085882

Hi

Disclaimer/TW : Vibe-coded project. You can hate me and insult me over that and i will understand it. But please bear with me for a minute

I wanted to share this abomination.

Basically i have been making helmfiles to deploy stoatchat and lasuitenumérique (which i previously shared : jlai.lu/post/32413174 )

But people kept asking me “but where docker-compose, k8s too complicated”.
Instead of being the bigger person and maintain manually a separate compose.yml , i decided to overdo it myself and make an absolute ICBM of a script to kill a fly.

I checked, no one was stupid enough to go that far with such a project. Maybe it could ACTUALLY be useful for someone. So have fun with it.

#selfhosted

threaded - newest

ubergeek77@lemmy.ubergeek77.chat on 13 Feb 09:50 next collapse

Vibecoded app or not, I really hope this refreshingly unhinged writing style is all you.

pokexpert30@jlai.lu on 13 Feb 10:48 collapse

Bono, my sanity is gone

the_shwa@programming.dev on 13 Feb 20:40 collapse

And my tires

K3can@lemmy.radio on 13 Feb 11:20 next collapse

Yeah, but there’s no compose file for the converter. How can you possibly run a single python script without docker+compose?

pokexpert30@jlai.lu on 13 Feb 13:07 collapse

I’m this close to dropping everything and becoming an ermit living at the top of a mountain.

bdonvr@thelemmy.club on 13 Feb 12:48 next collapse

Unnatural. Should be illegal.

pokexpert30@jlai.lu on 13 Feb 13:06 collapse

I wish it was.

notabot@piefed.social on 13 Feb 14:09 next collapse

If you’re using this script to convert something that isn’t self-contained, you are further into the abyss than I ever ventured, and I am certain it will end terribly.

Hmm, does this handle CRDs and operators? My setup depends quite heavily on them you see. My application manifests use services and operators defined in my core manifests. Everything works together like a finely oiled machine rotating through a few too many dimensions. I do not remember why it works. The abyss calls to me, whispering of self configuring services. The undying light calls to me, with promises of simpler systems and less madness. I hesitate, and turn towards the abyss…

Yog Sa’rath, stay away from me.

After witness this creation, even Yog Sa`rath is eyeing you wearily and giving you a wide berth, recognising one of their own, who has risen above the rest.

pokexpert30@jlai.lu on 13 Feb 14:26 collapse

You may want to take a look at such dreaded subjects, there’s docs/future

markstos@lemmy.world on 13 Feb 14:14 next collapse

How does it handle helm features that are not valid compose features? Silent failure or loud warning?

pokexpert30@jlai.lu on 13 Feb 14:25 collapse

Depends. take a look at docs/infrastructure. There are things that just can’t be replicated with compose (autoscaling…), and some we can scam.

MalReynolds@slrpnk.net on 13 Feb 14:49 collapse

If you want to do it right, have a look at podlet (docker to podman quadlet converter), should get you 90% of the way there.

pokexpert30@jlai.lu on 13 Feb 17:57 collapse

I’m afraid you had too much hope in me. Your project goes the right way - evolving docker to podman.
What i built is a devolution, it goes from kubernetes to docker.

MalReynolds@slrpnk.net on 13 Feb 18:04 collapse

Ah, my bad, down to might be interesting I guess.