Skip to content

Commit 08c5355

Browse files
authored
Add to the PSP warning about PVs that hostPath PVs cannot be made read-only. (#19504)
1 parent fa286e8 commit 08c5355

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/en/docs/concepts/policy/pod-security-policy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,10 @@ The **recommended minimum set** of allowed volumes for new PSPs are:
421421
- projected
422422

423423
{{< warning >}}
424-
PodSecurityPolicy does not limit the types of `PersistentVolume` objects that may be referenced by a `PersistentVolumeClaim`.
425-
Only trusted users should be granted permission to create `PersistentVolume` objects.
424+
PodSecurityPolicy does not limit the types of `PersistentVolume` objects that
425+
may be referenced by a `PersistentVolumeClaim`, and hostPath type
426+
`PersistentVolumes` do not support read-only access mode. Only trusted users
427+
should be granted permission to create `PersistentVolume` objects.
426428
{{< /warning >}}
427429

428430
**FSGroup** - Controls the supplemental group applied to some volumes.

0 commit comments

Comments
 (0)