Storage and Backup in Kubernetes! // Longhorn Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 54

  • @robfahey7363
    @robfahey7363 3 วันที่ผ่านมา +4

    K3s + Rancher + Longhorn is a great setup.
    I was able to make a test K3s cluster watching your videos and Jim's Garage.
    I have learned so much from your videos, they are so well done.

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      That is so nice! Thank you so much for the feedback :)

  • @mra2202
    @mra2202 3 วันที่ผ่านมา

    Really loved the video. I recently deployed longhorn in my cluster and this video made me realize how many mistakes I made. 😅

  • @mimicAuto
    @mimicAuto 2 วันที่ผ่านมา

    This is great! Thanks for taking the time to make such valuable and comprehensive content 👍

  • @DavidVincentSSM
    @DavidVincentSSM 3 วันที่ผ่านมา +4

    excellent tutorial as always.. looking forward to the upcoming traefik and certmanager tutorial

    • @christianlempa
      @christianlempa  3 วันที่ผ่านมา +5

      Thank you so much! 😊 it’s almost done so I’m gonna expect it to publish next week

    • @dimovstanimir
      @dimovstanimir วันที่ผ่านมา

      @@christianlempa I can't wait. ;)))

  • @LampJustin
    @LampJustin 3 วันที่ผ่านมา +5

    Hey Christian,
    since I've had many problems with longhorn, mainly perfomance and kubernetes upgrade (evicting volumes to other nodes) related, I found the drbd operator called piraeus. In my opinion it is vastly superior and makes use of proven tech like drbd for replication and either lvm or zfs for the backend storage. I hope you can give it a try and maybe compare the two. Piraeus could really use more attention as it is pretty easy to use as well and much faster.

    • @burads
      @burads 3 วันที่ผ่านมา +1

      Really love the idea of Longhorn as it's so easy to setup. But for me i ran into quota issues. That the volumes were out of space even though they were not. Apprantly when working with WAL files like prometheus uses the Used diskspace on disk and in longhorn differs by quite a lot due to the "Cleanup" Not replicating to the disk usage in longhorn. Which for me was a 2 GB metrics file that took up a 50GB Longhorn PV. and Prometheus crashed due to "Not enough diskspace.
      Now using Rook-Ceph for that reason.

    • @LampJustin
      @LampJustin 2 วันที่ผ่านมา

      @burads yeah I've had a number of other issues as well that I did not mention. Like problems with volume replication lagging behind and replicas failing at times. Also on bigger volumes draining nodes is nearly impossible and takes ages and resyncing failed replicas always resulted in the full volume having to be copied again, which is really annoying.

    • @LampJustin
      @LampJustin 2 วันที่ผ่านมา

      But maybe they fixed a couple of those issues. Though performance is always going to be bad because of the architecture

  • @imagineJH
    @imagineJH 3 วันที่ผ่านมา +2

    I would be interested in a video about using Velero for backups in combination with Longhorn!
    Great vid :)

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      Thanks! Never heard of it, but I will check it out ;)

  • @dean.kannenberg
    @dean.kannenberg 3 วันที่ผ่านมา

    Great Video, especially for the backup / restore part and the example with a helm chart!

  • @Mohamedmohamed2-i1t
    @Mohamedmohamed2-i1t 2 วันที่ผ่านมา

    Excellent tutorial, wonderful explanation as always

  • @L3st86
    @L3st86 3 วันที่ผ่านมา

    Using Longhorn in kubernetes since 4 years doing better in every release

  • @HDSlimex
    @HDSlimex 19 ชั่วโมงที่ผ่านมา

    Hello Christian I was just wondering what is the terminal client that you are using? Thanks

  • @ivanmaglica264
    @ivanmaglica264 วันที่ผ่านมา

    Hey Christian, what does Longhorn use in backend for storage? Is it ISCSI, NFS, NBD, ... ? It seems like it creates three big files, one on each node, exposes it over ISCSI, creates three-way raid1 md device, creates filesystem on top of it and then mounts it on host that hosts the container.

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      Hey! Great question, from my understanding, it is leveraging its own built-in mechanisms rather than traditional protocols like iSCSI or NFS, but I'm not sure.

  • @wrkt98
    @wrkt98 3 วันที่ผ่านมา

    excellent tutoriial! keep up the good work :)
    May I ask what's the confguration of your shell environment ?

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      Thank you so much! There's a video about it: th-cam.com/video/NfggT5enF4o/w-d-xo.html

  • @ivantomica
    @ivantomica 2 วันที่ผ่านมา

    Used Longhorn quite a bit in a homelab, and had/have nothing but a problems with it, in any scenario that involves more than few GB of data. Too lazy to switch to something like OpenEBS, CEPH, DirectPV or Piraeus at the moment though 🙂 Basically, anything usable rather than Longhorn.

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      Maybe the network connection and the disks are not fast enough to replicate that amount of data.

    • @ivantomica
      @ivantomica 8 ชั่วโมงที่ผ่านมา

      @@christianlempa it could be, but the fact remains that it handles those situations poorly. Perhaps also my lack of in-depth knowledge about the system plays a role. Never the less, both their docs, and their resilience could be better 😀

  • @MelroyvandenBerg
    @MelroyvandenBerg 3 วันที่ผ่านมา

    So what if you also have proxmox ceph and running kubernetes? I like to apply both best practices for HA and have some redundancy. What if you run K8s on top of Promox with ceph and longhorn..? Doesn't that sound very very redundant? What is your architecture advice here?

    • @MelroyvandenBerg
      @MelroyvandenBerg 3 วันที่ผ่านมา

      Also backup remotely. .. 321 backup rule

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      That's a good question, and honestly, I'm not sure what I would do here. I think it doesn't make much sense to replicate the volumes when the whole disk is replicated in Ceph. I need some time to think about it and play around with Ceph.

  • @igordasunddas3377
    @igordasunddas3377 2 วันที่ผ่านมา

    What if I have a single-node cluster? I'd like it to be as simple as can be, but have e.g. ZFS volumes or datasets be created in the ZFS storage on my Proxmox host.
    I am trying my luck with proxmox-csi-plugin, but I don't think I am happy with it...

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      Hm good question, I'm not sure if it works great for a single node cluster, it's recommended anyway to run a minimum of 3 nodes in Kubernetes.

  • @stefb69
    @stefb69 2 วันที่ผ่านมา

    i like rook ceph, but longhorn seems nice too

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      Nice, maybe I'll check it out at some point.

  • @MelroyvandenBerg
    @MelroyvandenBerg 3 วันที่ผ่านมา

    12:00 install add-on on Chrome or safari? You mean firefox or a firefox fork, right?

  • @WAMNZ
    @WAMNZ 3 วันที่ผ่านมา

    Do a tutorial about your terminal please.

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      There is: th-cam.com/video/NfggT5enF4o/w-d-xo.html

  • @brockhard
    @brockhard 2 วันที่ผ่านมา

    How do you delete longhorn when it's stuck deleting lol

    • @christianlempa
      @christianlempa  วันที่ผ่านมา

      It depends on which resources are stuck, maybe let's follow up on Discord ;)

  • @raine-works
    @raine-works 3 วันที่ผ่านมา

    Gigabytes ✖
    G B bites ✔

    • @christianlempa
      @christianlempa  วันที่ผ่านมา +1

      I hope I did it right :D

  • @SeanBotha
    @SeanBotha 3 วันที่ผ่านมา +4

    Isn't longhorn windows vista? Is this name even legal?

    • @christianlempa
      @christianlempa  3 วันที่ผ่านมา +1

      I don’t think it’s a tm :D

    • @FredrikRambris
      @FredrikRambris 2 วันที่ผ่านมา +1

      No, it is this big bovine creature. 😅

    • @hugodsa89
      @hugodsa89 2 วันที่ผ่านมา

      @@FredrikRambrisunderrated reply 🤣

  • @987we3
    @987we3 3 วันที่ผ่านมา +2

    Docker still better

    • @JokingChickenn
      @JokingChickenn 3 วันที่ผ่านมา +7

      For easy home setups. Yes
      For fun and/or HA setups. No
      Use whatever works for you tho

    • @guanche011
      @guanche011 3 วันที่ผ่านมา

      Under the hood its the same tech. K8s is a management layer on top for very large distributed apps, cool tech. But most businesses don't ever need it. Wait a few years until the videos come with the title "you probably don't need k8s" after the hype dies down (which is already happening). Edit; not to write off the tutorial christian, very thorough and well explained! If you think or want to work in mega scale services, this is valuable.

    • @thaddeuscleo5920
      @thaddeuscleo5920 วันที่ผ่านมา

      For small deployment yeah, wait until you need to manage multiple instances and manage system upgrades. Basic docker engine has limited capabilities