[ Kube 23.1 ] A guide to setting up dynamic NFS provisioning in Kubernetes

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

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

  • @SerkanYERLIKAYA
    @SerkanYERLIKAYA 2 года назад +12

    This is the most detailed and educational video about NFS provisioning on Kubernetes I've ever seen. Thanks in millions.

  • @zenobikraweznick
    @zenobikraweznick 5 месяцев назад +1

    Wow, you're faster then fast , quicker than quick, and yet informative and no bs pure knowledge, awesome! ❤

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

    Excellent video! I followed the instructions using "master" branch of kubernetes-sigs repo and everything ran smoothly!

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

    Just in few minutes I was testing the deployment of nfs provisioner with that first repo, and I've got stuck in that issue!! Thank you 🙏, your video has really saved me.

  • @Weirlive
    @Weirlive 2 года назад +5

    this works so well and thank you for walking us through this!!!! seeing a PVC show up on my NAS was so exciting!!

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

      Hi Jason, Thanks for watching.

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

      @@justmeandopensource the only thing I would add is how to use an archived PVC after it has been deleted on the node. I see it on my NFS now renamed to "archived-nfs-test-claim-pvc"

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

      @@Weirlive that archived volume/dir is more for the admin/user to recover any data if needed. Otherwise it can’t be reused within the cluster.

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

      @@justmeandopensource interesting, well thanks for the info.

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

      @@Weirlive no worries

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

    Thank you for this video, and as a gratitude i shared this video in my Linkedin profile. keep up the great K8S videos. wishing you all the best.

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

      Hi Nahum, thanks for watching and sharing. Much appreciated.

  • @PezhvakIMV
    @PezhvakIMV 3 года назад +4

    The BEST tutorial on setting up NFS in kubernetes, thanks + subscribed

  • @vanitymeetstechnology8792
    @vanitymeetstechnology8792 10 месяцев назад +1

    Thanks a lot.. I was so horrifically searching google wit AI and could not achieve what I want.. keep up the good work Sir

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

    Thanks Venkat for making video on this issue. Before we need to add selflink in k8s default manifest file.🤟🏼

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

    01:43 set up nfs server --> You set up nfs server on k8s node itself. correct me if worng. Great video as usaul. Thanks

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

    Thank you for the support !

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

    Thanks so much bro. I'm stuck with NFS Share after I upgraded my k8s version from 1.18 to 1.20. I have no idea why it cannot create pv. So this video helps me alot. Thanks again!.

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

      Can you let me know the name of app (execute command line) in this video?

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

      Sorry, it means the tool you used instead of the cmd tool. It's so cool.

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

    Many doubts cleared in single Video ..Thanks ..

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

    Nice to see something setup before giving it a go, awesome video, thanks!

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

    Hi Venkat, thanks for the amazing video.

  • @krunal4baps
    @krunal4baps 7 месяцев назад +1

    This is the best and deeply explained! Thank you... saved ton of time..

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

    detailed and practical explanation, thank you for such quality content.

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

    Lots of love from me. You have saved my prestige 😘😘😘😘

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

      Hi Sumith, thanks for your interest in this content. Glad to hear you found it useful. Cheers.

  • @SuperBitbucket
    @SuperBitbucket Год назад +2

    Fantastic video, thanks so much!

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

    I was getting that self link error, thank you so much for this video, you saved a lot of time for me

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

    This video has literally saved my butt! Thank you so much...i was stuck with my deployments and everything was on pending for volume provisioning. Im am subscribed and ready to learn more.

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

      So glad it helped. Many thanks for watching and subscribing. Cheers.

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

    This was very helpful. Thanks a bunch

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

    this works perfectly, thanks for ur help brother finally got it after week thank-you so much.

  • @Ajmalkhalil-cx4gf
    @Ajmalkhalil-cx4gf Месяц назад

    Thank you man, It helped a alot. Appreciating your efforts

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

    Hi, I like all your videos. I am using as storage solution on my kubernetes homelab longhorn v1.1.0. It’s a great solution . It’s a powerful distributed block storage system. Now longhorn support readwritemany workloads. You can create backup and snapshots . Think about make a video about longhorn. Best Regards.

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

    Excellent video

  • @Vitor-vh5ng
    @Vitor-vh5ng Год назад +1

    Thank You, helped a LOT.

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

    Excellence in every video you do

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

    Thanks for making such a usefull video man!!!!Can you please make a video on kubernetes operator,CRD and CR.

  • @user-cn9bo3gc7c
    @user-cn9bo3gc7c Год назад

    Wow great tutorial, I think you should make another k8s pv tutorial, how about rook/ceph?

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

    Very nice and helpful video ...

  • @zunairahminhaj212
    @zunairahminhaj212 6 дней назад

    Thanks for the detailed explanation. I have followed the helm installation. after creating PVC, I am trying to extend the storage size. Even though allowVolumeExpansion is set to true.The PVC expansion is not reflecting. The change is there in the manifest file when I am looking for manifest file. Any idea why this is PVC expansion is not working?

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

    thankyou so much venkat bro

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

    your videos quite comprehensive and have helped me in setting an ELK cluster in k8s. thanks a lot
    i am facing an issue with nfs snapshot repo, have send a message in slack. could you pls take a look and provide some suggestion ?

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

      Just saw your message in Slack. Can you provide me with more information.
      1. What is your kubernetes cluster look like (how did you provision, cloud or local laptop, windows or Linux host)
      2. What docs you followed for deploying ELK
      basically, if you could give me as much information as possible to help me recreate your set up in my environment, it would help troubleshoot

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

    very detailed explanation, thanks for your help. keep doing the good stuff..

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

    Great explanation. Loved all ur videos

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

    This is one of the great explanation. The kubernetes nfs provisioner, pvc and pv under nfs share are got created successfully. However, upon deploying test-pod.yaml file from the same github source with restartPolicy as 'Always', the pod is crashing with a message 'Restarting' is failing. Really appreciate if you can provide some suggestions and reasons.

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

    Thanks for great tutorials.btw, your browser looks strange. What browser is it? 😅

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

    Thanks for your effort

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

    Thanks a bunch, mate. this tutorial saved me a lot of time 🙏

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

    Nice explanation. Is there any native kubernetes dynamic hostbased persistent volume provisioner?

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

    Great content as usual :)
    Any plans on a video (series) on securing K8S apps with a WAF like modsecurity?

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

    Thanks man.

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

    Awesome !!!!

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

    you saved my life, thankyou

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

    ty! but i want to add that in rbac.ymal (or whatever u may call it) u need to add rights to get watch list create delete update endpoints. Without that i have some errors in provision-pod

  • @sigma-yn3qd
    @sigma-yn3qd 2 года назад +1

    Amazing

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

    Could you please also create a session on rook-ceph provisioning and hook with prometheus, etc.

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

    Thanks for this helpful tutorial. It is like finding missing part in a jigsaw. Do you know any tutorial about iscsi and openfiler usage in kubernetes. Thanks again...

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

      Hi Hasan, thanks for watching. I haven't come across any videos on iscsi/openfiler in kubernetes. Sure, there will be some docs lying around in the internet. Cheers.

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

    you're awesome dude

  • @VijayYadav-rc2is
    @VijayYadav-rc2is 2 года назад

    Hello Sir
    After following the step i am getting below error.
    Warning FailedScheduling 9s (x2 over 70s) default-scheduler 0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.

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

    How to do dynamic provisioning of PVCs for statefulsets yaml resources in bare-metal setup?

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

    you are awesome thanks for your help

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

    Best video collection for k8s. Could you please help me that which persistent storage solution I can use if I have a 3 nodes k3s Lab setup on my laptop ?

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

      Hi Ashu, thanks for watching. You don't have much option if you want to do that on your laptop. You can use NFS as shown in this video. Some kubernetes distribution like KinD, K3D, minikube all come with localpath provisioner pre-deployed so that you can start requesting and using persistent volumes without much effort

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

    Amazing,
    Thank you

  • @manuelm.8364
    @manuelm.8364 3 года назад +3

    Thank you for this video! Do you know the (dis)advantages of rook-nfs over this approach?

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

      Thanks for watching. Haven't tried rook-nfs yet to be able to comment. I might try it soon. Cheers.

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

    hi sir i always error like this after apply claim
    controller.go:966] error syncing claim "704565bf-af3a-4a5f-89a0-fcb63ba50f34": failed to provision volume with StorageClass "managed-nfs-storage": unable to create directory to provision new pv: mkdir /persistentvolumes/pv-claim-pvc-704565bf-af3a-4a5f-89a0-fcb63ba50f34: read-only file system how to fix it?

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

    A Biiig Thanks

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

    Hello, very good kubernetes domain and excellent explanation, I thank you for sharing your knowledge. One question, this solution that you explain in your video of dynamic provisioning using NFS (with ReadWriteMany) can be used on an AWS EC2 with an EBS ?. Before installing NFS for dynamic provisioning, you must prepare the disk with ext4 and LVM? Format. Thank you

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

      Hi Juan, thanks for watching. I didn't dive deeper into this as mostly in real world (production), you won't be using NFS as dynamic volume provisioner. Clusters will be running in the cloud and make use of dynamic provisioning that the cloud provider offers. NFS is not secure. There are OpenEBS, Rancher's Longhorn. When it comes to storage provisioning, there are lots of projects. I only covered the basics. If you were to take it seriously, then you will have multiple disk and some form of quota restrictions on the nfs server side. Because even if you create a PV of 1Gi, there is nothing stopping the pod from writing more than 1Gi data on that volume unless you have quotas setup on the nfs server side.

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

    good work there

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

    hi venkat...your explanation is awsome...I have a query...I have created a storage in cloud like amazon ebs or azure file disk or google cloud storge...can i use that storage in our on premise kubernetes cluster as dynamic volume

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

      Hi Uday, thanks for watching. You won't be able to achieve that from your on-prem servers unfortunately.

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

    Thank you.

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

    Hi Venkat, thanks for the amazing video.
    Can you give me several references for making dynamic provision allow expand disk size?
    Thank you

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

    what happens if the pod exceeds the amount claimed? would be nice if this was tested

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

      I can't remember but there is nothing that stops the pod from using more than it has claimed. I think I have tested it and noticed that the pod could indeed use more than requested.

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

    Hey, can i share my local storage to k8s on aws or other provider

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

    Nice

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

    Thank you

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

    fruitful as usual .. thanks! Now, I have a question, when I delete a pvc while the pv is still there, how to re-attach the pvc to the same pv again ?! trying to find any nfs solution providing this !

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

      Hi, thanks for watching. What is the retain policy set to? There is Retain, Recycle, Delete. I guess yours is set to retain. It can't be reused for any other pvc. You can set it to recycle, in which case, the content of the pv will be deleted before it is bound to another pvc. If you want the content of previous pv to be available for some reason, then you can't use dynamic provisioning. You will have to manage the pv yourself. Cheers.

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

      Just me and Opensource I’ve figured it out finally. However recycle is now deprecated, but using retain and specifying the volumeName solved it for me.

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

      @@nah0221 Perfect.

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

    Such a nice explanation. Just a small question. When the 'archiveOnDelete: "true"' is set, the volume is prefixed with the archived on the deletion of PVC. So is this volume reusable or not since it is prefixed with archived?

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

    what mode are you using in the Desktop environment for arch linux ? i want to use that style
    Thank you

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

      Hi Yassine, thanks for watching. What you mean by mode? I used Archlinux with I3 tiling window manager in this video. For terminal, I used Alacritty terminal with ZSH shell and zsh-autosuggestions & zsh-syntax-highlighting plugin if thats what you were asking. Cheers.

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

      @@justmeandopensource 😶🥴🥴

  • @Equality-and-Liberty
    @Equality-and-Liberty 3 года назад

    I just use the GUI in Rancher to create a PV base on an NFS share on my NAS. Till now I was not able to connect that share to my workload. The moment I create a PVC base on that Persistent Volume and connect it to my workload, the workload stop working. You have any idea what this could be? What is the difference between your method and creating a PV or PVC in the GUI of Rancher?

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

    Hi,
    Nice explanation and this works perfectly fine in most environments.
    Do you think this approach will work if I have setup a NFS server on a WSL Ubuntu image and then deploying a K8s cluster using K3d.
    Because in K3d we can not login into the nodes to install any packages. So I am trying to use a HELM chart nfs-client-provisioner to install client. But I am getting connection refused error in return, I have disabled the UFW also.
    Any comment on this scenario or what I should take care while using this.

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

    I like your video. Thanks you!

  • @Tarek.Fakhr.Aldeen
    @Tarek.Fakhr.Aldeen 3 года назад +1

    The old deployment didn't work because the self-link option disabled in Kubernetes API 1.20.x and will be removed in 1.21

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

    Very nice video! However I have a problem installing it on my cluster: failed to provision volume with StorageClass "managed-nfs-storage" - permission denied
    I am sure that it has permission to write as I am able to mount the NFS share on my computer. Do you know any way to fix it?

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

    i got an error on Pod crashloopback, can you help me?

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

    so, what does archive give you? how do you restore?

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

    Would you be able to do some work on VMware, more specifically on vSphere Cloud Provider?
    Thank you.

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

      Hi, What exactly do you want me to try?

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

      @@justmeandopensource Thanks for your reply, I'm currently trying to setup a HA Cluster with vSphere Cloud Provider in order to get persistent volumes across the nodes, I'm following this instructions: cloud-provider-vsphere.sigs.k8s.io/tutorials/kubernetes-on-vsphere-with-kubeadm.html
      Now I'm stuck in adding a new master node, I need to pass the flag: cloud-provider through a yaml file with kubeadm init --config to the master and kubeadm join --config to the workers, however I cannot do it to a second master.
      My issue: serverfault.com/questions/1060197/kubernetes-vsphere-cloud-provider
      Thanks again!

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

    The thing is, it won't work when i change the namespace in rbac.yml, can you update me, I updated everything with my own namespace even role,service account, deployment everything, i think the problem is in rbac.yml i added my own namespace to every different kind. is it fine to change or add namespace in rbac.yml?

  • @TanYihua-ge4yd
    @TanYihua-ge4yd Год назад

    why did you mount then unmount ?

  • @evansdaso2648
    @evansdaso2648 10 месяцев назад +1

    Please try and update all your videos, very good videos but all too old

    • @justmeandopensource
      @justmeandopensource  10 месяцев назад

      Thanks for watching. Yes you are right. I need to update most of my videos which I’ll be doing going forward.

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

    rpc error. code=Unknown desc =Error response from daemon :unauthorised :The client does not have permission for manifest

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

      Hi, thanks for watching. How did you export your nfs share? I had to add insecure option in the /etc/exports entry.

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

      @@justmeandopensource in our project we are taking images from private registry

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

      @@rajasekharreddy2377 Where exactly you are seeing this error. I mean when trying to do what you get this?

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

      Getting Image pull back off error for nfs

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

      @@justmeandopensource nfs pod is not up, and there by we are not able to deploy istio ingress gateway after istiod

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

    any slack group for discussion

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

      Check my channel banner. You will have link to join my workspace.

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

      @@justmeandopensource Thanks Venkat.Joined the group.

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

      @@nksajeer Thank you

  • @GrimWolf001
    @GrimWolf001 6 месяцев назад +1

    I'm a new viewer, trying to install Traefik, First you send me to this video and then you send me back even further.
    That's annoying and not very considerate on your part.

    • @justmeandopensource
      @justmeandopensource  6 месяцев назад

      Hi, sorry about that. I didn’t have a clear plan as these videos were recorded at different times and i didn’t think it from the viewers point of view. Thanks for bringing it out. I’ll try and correct this in my future content.