OpenShift Storage, Persistent Volume Claim (PVC), PV (OpenShift Administration Part-3) Red Hat Ex280

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2022
  • OpenShift Storage, Persistent Volume Claim (PVC), PV (OpenShift Administration Part-3) Red Hat Ex280
    ...................................
    OpenShift Storage
    Persistent Volume Claim (PVC)
    Persistent Volume (PV)
    Demo - Container with Persistent Database
    ** If new to Docker, Podman, Kubernetes and Openshift then first see -- • Docker, Podman, Contai...
    commands--
    oc get storageclass
    oc new-app --name postgresql-persistent --image registry.redhat.io/rhel8/postgresql-13:1-7 -e POSTGRESQL_USER=redhat -e POSTGRESQL_PASSWORD=redhat123 -e POSTGRESQL_DATABASE=persistentdb
    oc set volumes deployment/postgresql-persistent --add --name postgresql-storage --type pvc --claim-class nfs-storage --claim-mode rwo --claim-size 10Gi --mount-path /var/lib/pgsql --claim-name postgresql-storage
    oc get pvc
    oc get pv
    oc delete all -l app=postgresql-persistent
    oc new-app --name postgresql-persistent2 --image registry.redhat.io/rhel8/postgresql-13:1-7 -e POSTGRESQL_USER=redhat -e POSTGRESQL_PASSWORD=redhat123 -e POSTGRESQL_DATABASE=persistentdb
    oc set volumes deployment/postgresql-persistent2 --add --name postgresql-storage --type pvc --claim-name postgresql-storage --mount-path /var/lib/pgsql
    oc delete all -l app=postgresql-persistent2
    oc delete pvc/postgresql-storage

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

  • @deepikasingh2931
    @deepikasingh2931 ปีที่แล้ว +2

    Thanks Sir for detail content. I am preparing for ex280, I believe this content will very useful. I have cleared Ex180 by seeing you tutorial series on Ex180. Thanks once again.

  • @kd6613
    @kd6613 11 หลายเดือนก่อน +1

    [00:02] Introduction to Chapter 3 of the Red Hat OpenShift Administration tutorial.
    [00:16] Discussion on OpenShift Storage, Persistent Volume Claim (PVC), and Persistent Volume (PV).
    [00:30] Explanation of a lab demo on creating an application, attaching PVC and PV, and testing data persistence.
    [00:58] Emphasis on the volatile nature of data stored inside containers.
    [01:13] Containers in OpenShift clusters are dynamic; data inside can be lost if the container is removed.
    [01:26] The need for persistent storage to ensure data remains even if the container is removed.
    [02:22] Introduction to default storage classes provided by OpenShift.
    [02:37] Comparison of cloud storage options like AWS's S3.
    [03:30] Process of creating a PVC and then attaching it to an application.
    [04:10] Beginning of the demo to showcase the concepts discussed.
    [05:11] Explanation of storage classes in OpenShift.
    [05:50] Creation of a PostgreSQL database application inside a container.
    [06:18] Details on setting up the application using a specific image and environment variables.
    [07:38] Checking the status of the created application.
    [08:22] Attaching a volume to the application for persistent storage.
    [10:02] Emphasis on the importance of the mount path for data persistence.
    [11:59] Using scripts to insert and check data in the PostgreSQL database.
    [13:38] Checking the inserted data.
    [14:03] Explanation on how data remains persistent even if the application is removed.
    [15:55] Creating a new application and checking its data.
    [16:37] Attaching the previous volume to the new application to retrieve the persisted data.
    [18:18] Highlighting the importance of persistent storage in OpenShift.
    [18:44] Deleting the application and explaining the relationship between PVC and projects.
    [19:15] Emphasis on the significance of PVC for data persistence.
    [19:43] Conclusion of the tutorial.

  • @MnvSudhakar
    @MnvSudhakar 8 หลายเดือนก่อน +1

    I guess we create PVC along with deployment, PVC will be attached to PV. The PV will inherit from storage-class .. Please correct me if I am wrong.

  • @TechhSavvy
    @TechhSavvy ปีที่แล้ว +1

    Really great video. any new video coming ?

  • @divyajyothi2563
    @divyajyothi2563 11 หลายเดือนก่อน

    Nice

  • @AwargiforSirTarar
    @AwargiforSirTarar ปีที่แล้ว +2

    Where i can find these scripts?

  • @suribabu1325
    @suribabu1325 ปีที่แล้ว +1

    what exactly ./check.script has please provideme

  • @MnvSudhakar
    @MnvSudhakar 8 หลายเดือนก่อน

    how can we login as kube-admin .. when i login to my sandbox, default it is logging in as developer.. Please include that step, how we login to openshift cluster as kube-admin user .. Thanks