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

DO180-604: ch5s8: Use default nginx's root for volume mount instead of /var/www/html

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • DO180 - OCP4.12-en-1-20230406
    • DO180
    • None
    • en-US (English)

      URL: https://rol.redhat.com/rol/app/courses/do180-4.12/pages/ch05s08
      Reporter RHNID:
      Section: 8 - Guided Exercise: Manage non-Shared Storage with Stateful Sets
      Language: en-US (English)||||||||
      Workaround: [student@workstation ~]$ oc set volumes deployment/web-server \
      > --add --name web-pv --type persistentVolumeClaim --claim-mode rwo \
      > --claim-size 5Gi --mount-path /usr/share/nginx/html --claim-name web-pv-claim

      Description: Instructions in GE "Manage non-shared storage with Stateful Sets" in step 2 include using the mount-path /var/www/html which is not the root path configured by the nginx container image used.  Instead /usr/share/nginx/html is used.

      Either change the instructions to mount to /usr/share/nginx/html or update the image to use /var/www/html as its root

            rht-hquatrem Herve Quatremain
            rhn-support-ablum Andrew Blum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: