Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-8592

DO280-538: Chp.2: Example of Deploying Dynamically Provisioned Storage

XMLWordPrintable

    • en-US (English)

      URL: https://rol.redhat.com/rol-stage/app/courses/do280-4.6/pages/ch02s05
      Reporter RHNID:
      Section: 2.5 - Introducing OpenShift Dynamic Storage
      Language: en-US (English)
      Workaround:

      Description: The oc set volumes example in Section 2.5 Introducing OpenShift Dynamic Storage should be corrected by changing the volume name and claim name to be as same as the following PVC and PVC names.

      [Before]

      [user@host ~]$ oc set volumes deployment/example-application \
      > --add --name example-storage --type pvc --claim-class nfs-storage \
      > --claim-mode rwo --claim-size 15Gi --mount-path /var/lib/example-app \
      > --claim-name example-storage

      [After]

      [user@host ~]$ oc set volumes deployment/example-application \
      > --add --name example-pv-storage --type pvc --claim-class nfs-storage \
      > --claim-mode rwo --claim-size 15Gi --mount-path /var/lib/example-app \
      > --claim-name example-pv-claim

      See the following PVC and PV names in the produced YAML:


      apiVersion: v1
      kind: PersistentVolumeClaim 1
      metadata:
      name: example-pv-claim
      ---


      spec:
      volumes:

      • name: example-pv-storage
        ---

              rht-ichavero Ivan Chavero (Inactive)
              minamot Fusayuki Minamoto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: