Skip to content

Commit aef3969

Browse files
authored
Merge pull request #6967 from tengqm/psp
Document AllowedFlexVolumes in PSP
2 parents 08c6ca2 + ed2dd9d commit aef3969

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ administrator to control the following:
2828
| Usage of host networking and ports | [`hostNetwork`, `hostPorts`](#host-namespaces) |
2929
| Usage of volume types | [`volumes`](#volumes-and-file-systems) |
3030
| Usage of the host filesystem | [`allowedHostPaths`](#volumes-and-file-systems) |
31+
| Usage of FlexVolume drivers | [`allowedFlexVolumes`](#flexvolume-drivers) |
3132
| Allocating an FSGroup that owns the pod's volumes | [`fsGroup`](#volumes-and-file-systems) |
3233
| Requiring the use of a read only root file system | [`readOnlyRootFilesystem`](#volumes-and-file-systems) |
3334
| The user and group IDs of the container | [`runAsUser`, `supplementalGroups`](#users-and-groups) |
@@ -417,6 +418,20 @@ containers, and abusing the credentials of system services, such as Kubelet._
417418
**ReadOnlyRootFilesystem** - Requires that containers must run with a read-only
418419
root filesystem (i.e. no writeable layer).
419420

421+
### FlexVolume drivers
422+
423+
When the [`Volumes`](#volumes-and-file-systems) field contains `flexVolume` in
424+
its list value, the cluster admin can further specify which driver(s) is permitted
425+
by setting the `allowedFlexVolumes` field.
426+
427+
**AllowedFlexVolumes** - Provides a whitelist of allowed FlexVolumes. Empty or
428+
nil indicates that all FlexVolume drivers may be used. For example, the following
429+
setting only permits the `examle/fast_cache` driver to be used on nodes:
430+
431+
```yaml
432+
allowedFlexVolumes: [ "example/fast_cache" ]
433+
```
434+
420435
### Users and groups
421436

422437
**RunAsUser** - Controls the what user ID containers run as.

0 commit comments

Comments
 (0)