Persistent Volumes with NFS and Cloud Storage // Kubernetes Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

Комментарии • 72

  • @madhudson1
    @madhudson1 3 года назад +8

    Great overview of an initially confusing system. As a developer, it's hugely beneficial to have storage abstracted away like this

    • @christianlempa
      @christianlempa  2 года назад

      Thanks! Great feedback :)

    • @cholasimmons
      @cholasimmons 8 месяцев назад

      i used to laugh at the pricing of separate storage by the cloud provider, thinking i could just get away with regular hard drive storage on the server. lol

  • @cholasimmons
    @cholasimmons 8 месяцев назад +1

    Never before has a kubernetes tutorial made so much sense! 👌

  • @Shubhamhirau
    @Shubhamhirau 3 года назад +3

    Glad to see your videos on Every Tuesday ☺️

  • @DigitEgal
    @DigitEgal 3 года назад +1

    Your language is on point! Its great to see your language increases in quality with each video you took :)
    CIVO looks very interesting im gonna take a look into it

    • @christianlempa
      @christianlempa  3 года назад +1

      Thank you so much! Especially because you know exactly where I started :D

  • @redakker
    @redakker 2 года назад +2

    Just love your content. And the presentation.
    Not just here, all videos are remarkable. (My thoughts came about it t this point:))
    They are understandable, simple explanations.
    So keep doing this!

    • @christianlempa
      @christianlempa  2 года назад

      Thank you so much! Of course, I’ll do :)

  • @TheDeclancox
    @TheDeclancox 2 месяца назад

    Excellent overview, great delivery, vielen Dank!

  • @MrKorwinK
    @MrKorwinK Год назад +1

    Thanks

  • @am7-p
    @am7-p Год назад +2

    nfs-common needs to be installed on all nodes: sudo apt install -y nfs-common

  • @juanrebella2589
    @juanrebella2589 3 года назад +1

    World-Class content man, appreciated!

  • @epochphilosophy
    @epochphilosophy Год назад +1

    Anyone else here wondering why the f*ck Kubernetes wouldn't allow an app's replicas to mount to Longhorn?

  • @jefflucas_life
    @jefflucas_life Год назад

    14:53 I think this only works when remote NFS volume is mounted locally on the worker controller/nodes on the /etc/fstab. What setup/configured nfs csi how did you do the pods?

  • @90DaysOfDevOps
    @90DaysOfDevOps 3 года назад +1

    Would you consider giving a talk like this for cloud-native data management days? The education around storage and data is daunting for a lot of people and think you could tell a great story here.

    • @christianlempa
      @christianlempa  3 года назад +1

      Thank you! Well I haven't considered giving any talks yet. I usually prefer making videos and livestreaming on YT.

    • @DigitEgal
      @DigitEgal 3 года назад

      @@christianlempa You should consider that Christian! You are ready!

  • @yashmurthy1019
    @yashmurthy1019 Год назад

    Very informative.
    Could you please create a similar video for iSCSI storage?

  • @pfsykes
    @pfsykes 3 года назад +2

    Just started watching your tutorials and subscribed... The content is fantastic and well put together. Just one question what is the auto complete tool you are using in the wsl2 terminal?

    • @christianlempa
      @christianlempa  3 года назад +2

      Thank you so much! I'm using ZSH + zsh-autosuggestions, plugin: here is a video about my entire terminal setup: ruclips.net/video/oF6gLyhQDdw/видео.html&

  • @ebiscaia
    @ebiscaia Год назад

    Hi Christian,
    Have you ever considered making a video of statefulsets and when to use them instead of persistent volumes?
    Cheers

  • @vitusyu9583
    @vitusyu9583 9 месяцев назад

    If the CIVO supports only RWO, you mentioned only pods within a single node can access it. Could you explain more?

  • @ElTebe
    @ElTebe 3 месяца назад

    Is there an available option to add persistent volumes of the kubernetes cluster on Ceph?
    3 Proxmox+Ceph physical nodes -> VMs -> kubernetes cluster connect to the host node's Ceph storage
    (I found some info about Ceph on a Kubernetes cluster but not the other way)

    • @christianlempa
      @christianlempa  3 месяца назад +1

      I haven't looked at that, yet. Currently, I'm working on a new tutorial on Longhorn, probably coming out somewhere next year.

    • @ElTebe
      @ElTebe 3 месяца назад

      @@christianlempa Great news, thank you

  • @ashkaanhassan5398
    @ashkaanhassan5398 2 года назад

    Fantastic videos.. I'm subscribing!

  • @pratahsinnetamby
    @pratahsinnetamby 2 года назад

    Great Video. I'm a newbee and a little confused as to how the nfs storage class works. In some of the literature I read, they refer to nfs provisioner however you seem to have simply used the IP address. Setting up the provisioner was a challenge in it self but you seem to have gotten around it! I am using Truenas. Does your approach use the SMB service or does the nfs service have to be active? Apologies if my questions don't make sense due the sketchy knowledge I have on how all of this hangs together! Your assistance is much appreciated.

  • @nuruzzamanhossain5086
    @nuruzzamanhossain5086 Год назад

    Great, you are life saver

  • @MrShashankTube
    @MrShashankTube 2 года назад

    I have been using virtualbox in windows 10 with minikube and docker desktop for local development. I am using hostPath and (also tried using persistent volumes) at the moment and fetching data from apis is taking minimum of 5 seconds. 1 reuqests take 5 or more seconds. I have tried to figure out solution for it but can't. Somewhere i found that, it is the issue with DNS resolution. Do you know anything about it ? The issue with the slowness?

  • @samsulhaque8064
    @samsulhaque8064 Год назад

    Hi Sir,
    I have a question about stateful application
    Let’s say I have a PostgreSQL Sharded cluster in my Kubernetes cluster and have 3 replicas with Stateful Set and storage class
    Case1: If replica set increase 3 to 4 one pv attached to 4th number pod dynamically also some data stored in 4th member pv and all are ok
    Case2. When scale down 4 to 3 my 4th number pod down and pv remaining existing. And that data remaining inaccessible. when replicate set up that pv can accessible
    a. If that pv inaccessible so is there any data inconsistency happen?
    b. If inconsistency happen how to redistributed that data from 4th number pv to others pv .
    c. Or what the actual thing happens that orphan pv when do scale down in stateful application

    • @christianlempa
      @christianlempa  Год назад

      It's not that much different from running the DBs on separate VMs. But I doubt to have enough experience to tell you how you should build an HA DB cluster :/

  • @mitchross2852
    @mitchross2852 2 года назад

    This was really helpful!

  • @andherium
    @andherium Год назад

    why not use NFS storage class?

  • @yifeiren8004
    @yifeiren8004 Год назад

    You can deploy rancher. Then install longhorn from its graphic UI. It will give you a HA storage system running as containers in your cluster, using the hosts storage 😊

    • @christianlempa
      @christianlempa  Год назад

      To be honest, I didn’t like it much. For me NFS works better.

    • @yifeiren8004
      @yifeiren8004 Год назад

      @@christianlempa the only issue I had is I accidentally deleted its daemon, and it is not repairable 🙃

    • @pjj7466
      @pjj7466 Год назад

      Sir is NFS and NAS both are same?

    • @geemobile6037
      @geemobile6037 Год назад

      @@pjj7466from my limited understanding they are not the same. NFS is a network protocol, think smb or dlna. Nas is more hardware and can be accessed via different network protocols or directly thunderbolt or usb if supported

  • @KaMZaTa
    @KaMZaTa 2 года назад

    Have you ever checked OpenEBS? What do you think about it?

    • @christianlempa
      @christianlempa  2 года назад +1

      Not tried it yet

    • @KaMZaTa
      @KaMZaTa 2 года назад

      @@christianlempa I’ll be waiting for your videos about it! Thanks!

    • @KaMZaTa
      @KaMZaTa 2 года назад

      @@christianlempa Do you use an NFS share for your production environment? What about backup and restore?

  • @jeet4050
    @jeet4050 3 года назад

    I have a question, what happens when two PVC tries to claim a PV at same time?
    like PV is of 10GB and those both PVC is of 3GB each, and they both tries to claim the PV at same point of time?

    • @christianlempa
      @christianlempa  3 года назад +2

      That does not work, unfortunately. I thought first it would work this way, but the PVC always claims the entire PV, so even when PVC wants 3GB and there is only 1 PV with 10GB, the PVC claims the entire 10GB and bounds it 1:1 to the PV.

  • @lorem4811
    @lorem4811 2 года назад

    Hi, can we deploy a pod that will be an NFS server?

    • @christianlempa
      @christianlempa  2 года назад

      Yes, that works! Maybe I make a video about it in the far future.

  • @mitchross2852
    @mitchross2852 2 года назад

    Does each app get its own PVC? and /or Does each app need its own PV ? So If I have app1 and app2 can app1 and app2 share the same PV and do they each use the same PVC?

    • @christianlempa
      @christianlempa  2 года назад

      That depends on the kind of your app. Pods in Deployments share the same PVC, Pods in Statefulsets have all their own PVC.

    • @mitchross2852
      @mitchross2852 2 года назад

      @@christianlempa could you perhaps provide a drawing let’s say I have a Wordpress App and a Pihole app both having persistent storage. In the docker compose world each folder might be the root level storage directory so when the docker volume mounts it’s using the folders root level. Ie /home/docker/pihole/myconfigs or /home/docker/Wordpress/myDbConfigs

  • @rachid59
    @rachid59 3 года назад

    Hello, Thanks for all your vidéo.
    Do you know headscale ? It's a tailscale coordination server. Ils want to test it but i don't understand how i can install it. Can you make a vidéo about it ? Thanks

    • @christianlempa
      @christianlempa  3 года назад +1

      Hey thank you so much! I heard about it, but as I'm pretty happy with tailscale I haven't tried it out, yet.

    • @rachid59
      @rachid59 3 года назад

      @@christianlempa i have tailscale too. But i'm interested about this project 😁

  • @whitev630
    @whitev630 3 года назад

    Can you create a video about setting up NFS server in ubuntu

    • @christianlempa
      @christianlempa  3 года назад

      Hm, I will include NFS in my kubernetes video about wordpress soon, watch out for that

  • @piotrka2842
    @piotrka2842 Год назад

    Containers are work ephemeral, but they're NOT immutable - you can change them.

  • @dinushkam2444
    @dinushkam2444 3 года назад

    Great video

  • @denilsonbonatti709
    @denilsonbonatti709 2 года назад

    Thank you very much!!

  • @shynggyskassen942
    @shynggyskassen942 Год назад

    bs, too much water

  • @allisondealmeida
    @allisondealmeida 2 года назад

    Nice!!!

  • @vishnupriyayeganathan6366
    @vishnupriyayeganathan6366 2 года назад

    How to copy the default exist files like index.html in nginx to /usr/share/nginx/html instead of creating a new default.html ?