this post was submitted on 14 Jun 2023
8 points (100.0% liked)

Selfhosted

40137 readers
627 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
 

In the What are YOU self-hosting? thread, there are a lot of people here who are self-hosting a huge number of applications, but there's not a lot of discussion of the platform these things run on.

What does your self-hosted infrastructure look like?

Here are some examples of more detailed questions, but I'm sure there are plenty more topics that would be interesting:

  • What hardware do you run on? Or do you use a data center/cloud?
  • Do you use containers or plain packages?
  • Orchestration tools like K8s or Docker Swarm?
  • How do you handle logs?
  • How about updates?
  • Do you have any monitoring tools you love?
  • Etc.

I'm starting to put together the beginning of my own homelab, and I'll definitely be starting small but I'm interested to hear what other people have done with their setups.

you are viewing a single comment's thread
view the rest of the comments
[–] rs5th@lemmy.scottlabs.io 1 points 1 year ago* (last edited 1 year ago)

My setup is a mix of on-prem and VPS.

On-Prem

  • Primary Cluster (24 cores, 192 GB RAM, 36 TB usable storage)
    • Two Dell R610 (12 cores, 96 GB RAM each)
    • vSphere 7.0, ESXi 6.7 (because processors are too old for 7.0)
    • Kubernetes 1.24
      • Single controller VM
      • Two worker VMs
      • OS: Ubuntu 20.04
      • K8s Flavor: Kubeadm
    • Use: Almost everything
    • Storage:
      • Synology 1515 (11 TB usable, RAID 5) - vSphere datastore via NFS
      • Synology 1517 (25 TB usable, RAID 5) - Kubernetes mounts via NFS, media, general NAS stuff
  • Standalone Node (4 cores, 16GB RAM, 250 GB SSD)
    • Lenovo M900 micro-PC
    • OS: Ubuntu 22.04
    • Kubernetes 1.24
    • K8s Flavor: k3s
    • Use: provide critical network services (DNS/DHCP) if any part of the complex cluster goes down, Frigate due to USB Coral TPU plugged in here
  • Networking / Other
    • DNS:
      • Primary: AdGuard Home running on Standalone
      • Internal domain: BIND VM running in Primary Cluster
    • Firewall: Juniper SRX 220H
    • Switch: Juniper EX2200-48
    • WiFi: 3x Unifi In-Wall APs
    • Power:
      • UPS backing compute and storage (10-15 min runtime)
      • UPS backing networking gear (15-20 minute runtime)

VPS

  • Single Linode (2 cores, 4 GB RAM, 80 GB storage)
    • OS: Ubuntu 22.04
    • Kubernetes 1.24
    • K8s Flavor: k3s
    • Use: UptimeKuma to monitor on-prem infrastructure, services that can't go down due to home ISP or power issues (like family RocketChat).

Every service (except Plex) is containerized and running in Kubernetes. Plex will be migrated soon(TM). Everything in Kubernetes is handled via Infrastructure as Code using FluxCD and GitOps principles. Secrets are stored in git using Mozilla SOPS for encrypt/decrypt. Git repos are currently hosted in GitHub, but I'm considering Gitea, though that might present a bit of a bootstrapping problem if all the infrastructure that hosts Gitea is declared inside Gitea...