Skip to content

Commit 667b292

Browse files
committed
OCPBUGS-9451: Volume mounts name and volume name matched in yaml file for local storage
1 parent cd521e9 commit 667b292

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/persistent-storage-local-pod.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ declares the persistent volume claim inside a pod:
2323
apiVersion: v1
2424
kind: Pod
2525
spec:
26-
...
26+
# ...
2727
containers:
2828
volumeMounts:
2929
- name: local-disks <1>
3030
mountPath: /data <2>
3131
volumes:
32-
- name: localpvc
32+
- name: local-disks
3333
persistentVolumeClaim:
3434
claimName: local-pvc-name <3>
35+
# ...
3536
----
3637
<1> The name of the volume to mount.
3738
<2> The path inside the pod where the volume is mounted. Do not mount to the container root, `/`, or any path that is the same in the host and the container. This can corrupt your host system if the container is sufficiently privileged, such as the host `/dev/pts` files. It is safe to mount the host by using `/host`.

0 commit comments

Comments
 (0)