this post was submitted on 26 Aug 2023
158 points (91.1% liked)

Selfhosted

40345 readers
689 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Many of the posts I read here are about Docker. Is anybody using Kubernetes to manage their self hosted stuff? For those who've tried it and went back to Docker, why?

I'm doing my 3rd rebuild of a K8s cluster after learning things that I've done wrong and wanted to start fresh, but when enhancing my Docker setup and deciding between K8s and Docker Swarm, I decided on K8s for the learning opportunities and how it could help me at work.

What's your story?

you are viewing a single comment's thread
view the rest of the comments
[–] TheLordlessBard@sh.itjust.works 5 points 1 year ago (1 children)

Love is a strong word, but kubernetes is definitely interesting. I'm finishing up a migration of my homelab from a docker host running in a VM managed with Portainer to one smaller VM and three refurbished lenovo mini PCs running Rancher. It hasn't been an easy road, but I chose to go with Rancher and k3s since it seemed to handle my usecase better than Portainer and Docker Swarm could. I can't pass up those cheap mini PCs

[–] Osnapitsjoey@lemmy.one 1 points 1 year ago* (last edited 1 year ago) (1 children)

Does rancher connect the pcs together? I have like 3 mini pcs sitting around, and I've always wanted to kinda combine them somehow

Like being able to combine cpu power or something. Idk if this is possible without getting a mobo with multiple cpu slots, but if it is. I'd love to learn!

[–] TheLordlessBard@sh.itjust.works 0 points 1 year ago (1 children)

Yeah, Kubernetes is designed to run in a cluster so you can pool processing power and memory from multiple devices. I banged my head against the wall for hours trying to figure out how to set up a cluster by hand, but then discovered if you install Rancher in a regular docker container it can handle all that for you

[–] Osnapitsjoey@lemmy.one 2 points 1 year ago (1 children)

No shit. So you're saying I can hook up like three mini pcs and make a mega at home server!? I gotta look into this. Did you follow a guide or anything you think is good enough or is as easy as a Google?

[–] TheLordlessBard@sh.itjust.works 1 points 1 year ago (1 children)

My recommendation is to look into k3sup and Rancher. I had a lot of trouble trying to install rancher in a docker container and migrating to a cluster after, and k3sup makes it really easy to set up a k3s cluster without having to configure everything manually

You can accomplish the same task with docker swarm, but I figured it would be better to learn something that wasn't abandonware

I haven't dug into the storage side yet since I have a separate NAS, but it will probably be beneficial to set up something like Ceph, GlusterFS, or Longhorn if you don't have one

[–] Osnapitsjoey@lemmy.one 1 points 1 year ago (1 children)

Oh I just realized this is for kubernates. Unraid is all dockers. Can a docker swarm also pool resources?

Yep, similar concept. Not sure how well unraid will handle the swarm behavior but I can imagine there's someone out there who has tried it before