-
Bug
-
Resolution: Done
-
Major
-
DO280 - OCP 4.6 1 20210723
-
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
---