Skip to content

Commit b3d3649

Browse files
authored
Merge pull request #93626 from lpettyjo/OCPBUGS-54478
OCPBUGS-54478#warning for nested mount points
2 parents c790bd1 + c578e81 commit b3d3649

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

modules/openshift-storage-common-terms.adoc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,42 @@ KMS key:: The Key Management Service (KMS) helps you achieve the required level
5050

5151
Local volumes:: A local volume represents a mounted local storage device such as a disk, partition or directory.
5252

53+
Nested mount points:: A nested mount point is a mount point that attempts to use a mount point created by a previous volume.
54+
+
55+
.Example pod definition with nested mount points
56+
+
57+
[source,terminal]
58+
----
59+
kind: Pod
60+
apiVersion: v1
61+
metadata:
62+
name: webapp
63+
labels:
64+
name: webapp
65+
spec:
66+
containers:
67+
- name: webapp
68+
image: nginx
69+
ports:
70+
- containerPort: 80
71+
name: "http-server"
72+
volumeMounts:
73+
- mountPath: /mnt/web
74+
name: web
75+
- mountPath: /mnt/web/redis <1>
76+
name: redis
77+
volumes:
78+
- name: redis
79+
persistentVolumeClaim:
80+
claimName: "redis"
81+
- name: web
82+
persistentVolumeClaim:
83+
claimName: "web"
84+
----
85+
<1> Nested mount point
86+
+
87+
Do _not_ use nested mount points because {product-title} does not guarantee the order in which mount points are created. Such usage is prone to race conditions and undefined behavior.
88+
5389
ifndef::openshift-dedicated,openshift-rosa[]
5490
NFS:: A Network File System (NFS) that allows remote hosts to mount file systems over a network and interact with those file systems as though they are mounted locally. This enables system administrators to consolidate resources onto centralized servers on the network.
5591
endif::openshift-dedicated,openshift-rosa[]

0 commit comments

Comments
 (0)