I’m currently struggling with upgrading some Postgres DBs on my home-k3s and I’m seriously considering throwing it all away since it’s such a hassle.

So, how do you handle DBs? K8s? Just a regular daemon?

  • bookworm@feddit.nl
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 year ago

    I just run one mariadb container via docker-compose that all my other services use as their database.

    version: "2"
    services:
      mariadb:
        image: lscr.io/linuxserver/mariadb:latest
        container_name: mariadb
        environment:
          - TZ=####/####
          - PUID=###
          - PGID=###
          - MYSQL_ROOT_PASSWORD==############
        volumes:
          - /docker/mariadb:/config
        ports:
          - 3306:3306
        restart: unless-stopped
    

    Off-topic but I don’t really get the appeal in running Kubernetes (or similar technologies) in a homelab. Unless it’s something you want to learn for work of course.

    • VexCatalyst@lemmy.fmhy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      That, and you have to take into account each person’s available hardware and resources.

      I have an under powered 10 year old desktop, a resonably specd 5 year old laptop with a busted screen, and 8 Raspberry Pi’s (3s and 4s). And can’t currently afford better hardware.Sometimes clustering those Pi’s makes sense.

      You can use whatever you have to hand.