Kubernetes Volumes explained | Persistent Volume, Persistent Volume Claim & Storage Class

    15
    26



    Kubernetes Volumes | Kubernetes Persistent Volumes | Kubernetes Volume Claim | Kubernetes Volume Tutorial
    ► Subscribe To Me On Youtube: https://bit.ly/2z5rvTV

    Kubernetes doesn’t provide data persistence out of the box, which means when a pod is re-created, the data is gone.
    So, you need to create and configure the actual physical storage and manage it by yourself. Once configured, you can use that physical storage using Kubernetes storage components. In this video I show you 3 different Kubernetes volume components, that you need to use to connect the actual physical storage to your pod, so that the application inside the container can access it.

    The 1st component “Persistent Volume” is a cluster resource, like CPU or RAM, which is created and provisioned by administrators. The 2nd component “Persistent Volume Claim” on the other hand is a user’s or pod’s request for a persistent volume. With the 3rd component “Storage Class” you can dynamically provision Persistent Volume component and so automate the storage provisioning process.

    ► Reference to YAML Configs: https://gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/-/tree/master/kubernetes-volumes
    ► Volume Types: https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes
    ► Checkout Kubernetes Volumes Demo: https://youtu.be/FAnQTgr04mU

    ▬▬▬▬▬▬ T I M E S T A M P S
    0:00 – Intro
    0:20 – The need for persistent storage & storage requirements
    2:05 – Persistent Volume (PV)
    6:33 – Local vs Remote Volume Types
    7:38 – Who creates the PV and when? (Kubernetes Administrator and Kubernetes User Role)
    9:03 – Persistent Volume Claim (PVC)
    10:33 – Levels of volume abstractions
    12:17 – Why are these abstractions good?
    13:40 – ConfigMap and Secret as volume types
    15:52 – Multiple and different volume types in 1 pod
    17:12 – Storage Class (SC)

    ——————————————————————————————————-
    Full Kubernetes and Docker tutorial ► https://bit.ly/2YGeRp9
    DevOps Tools, like Ansible ► https://bit.ly/2W9UEq6
    Complete K8s Application Setup ► https://youtu.be/EQNO_kM96Mo
    Complete Jenkins Pipeline Tutorial ► https://youtu.be/7KCS70sCoK0

    For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. Also please let me know what you want to learn about Docker & Kubernetes or another technology.

    #kubernetesvolumes #kubernetes #kubernetestutorial #devops #techworldwithnana
    ——————————————————————————————————-

    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    Join private Facebook group ► https://bit.ly/32UVSZP
    Don’t forget to subscribe ► https://bit.ly/3mO4jxT
    DEV ► https://bit.ly/3h2fqiO
    INSTAGRAM ► https://bit.ly/2F3LXYJ
    TWITTER ► https://bit.ly/3i54PUB
    LINKEDIN ► https://bit.ly/3hWOLVT

    Legal Notice:
    Kubernetes and the Kubernetes logo are trademarks or registered trademarks of The Linux Foundation in the United States and/or other countries. The Linux Foundation and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Kubernetes or The Linux Foundation.

    source

    Previous articleAzure AZ-400 Tutorial | Azure DevOps Certification | Azure DevOps Online Training | Edureka
    Next articleDocker Tutorial #1 – Warum ihr Docker braucht!

    26 COMMENTS

    1. ► Reference to YAML Configs: https://gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/-/tree/master/kubernetes-volumes

      ▬▬▬▬▬▬ T I M E S T A M P S
      0:20 – The need for persistent storage & storage requirements
      2:05 – Persistent Volume (PV)
      6:33 – Local vs Remote Volume Types
      7:38 – Who creates the PV and when? (Kubernetes Administrator and Kubernetes User Role)
      9:03 – Persistent Volume Claim (PVC)
      10:33 – Levels of volume abstractions
      12:17 – Why are these abstractions good?
      13:40 – ConfigMap and Secret as volume types
      15:52 – Multiple and different volume types in 1 pod
      17:12 – Storage Class (SC)

    2. i really struggling to understand things.
      Say my application uses a mongodb databse to store data.
      So, if i mounted a storage like in this video,.. who is going to install mongodb in that storage for me?
      And what connection string, , url, password, etc should i be writing in my applications code, so it will connected to the above storage?

    3. Claim must exist in the same namespace as the pod using the claim, but PV are not namespaced. Confused on this point. Is there a difference between PVC and PV? (Ok, I think I see: Admin creates PV (not namespaced). User creates PVC which is namespaced. Is this correct?