@@ -21,15 +21,22 @@ actions that a pod can perform and what it has the ability to access. The
21
21
run with in order to be accepted into the system. They allow an
22
22
administrator to control the following:
23
23
24
- 1 . Running of privileged containers.
25
- 1 . Capabilities a container can request to be added.
26
- 1 . The SELinux context of the container.
27
- 1 . The user ID.
28
- 1 . The use of host namespaces and networking.
29
- 1 . Allocating an FSGroup that owns the pod's volumes
30
- 1 . Configuring allowable supplemental groups
31
- 1 . Requiring the use of a read only root file system
32
- 1 . Controlling the usage of volume types
24
+ | Control Aspect | Field Name |
25
+ | ------------------------------------------------------------- | --------------------------------- |
26
+ | Running of privileged containers | ` privileged ` |
27
+ | Default set of capabilities that will be added to a container | ` defaultAddCapabilities ` |
28
+ | Capabilities that will be dropped from a container | ` requiredDropCapabilities ` |
29
+ | Capabilities a container can request to be added | ` allowedCapabilities ` |
30
+ | Controlling the usage of volume types | [ ` volumes ` ] ( #controlling-volumes ) |
31
+ | The use of host networking | [ ` hostNetwork ` ] ( #host-network ) |
32
+ | The use of host ports | ` hostPorts ` |
33
+ | The use of host's PID namespace | ` hostPID ` |
34
+ | The use of host's IPC namespace | ` hostIPC ` |
35
+ | The SELinux context of the container | [ ` seLinux ` ] ( #selinux ) |
36
+ | The user ID | [ ` runAsUser ` ] ( #runasuser ) |
37
+ | Configuring allowable supplemental groups | [ ` supplementalGroups ` ] ( #supplementalgroups ) |
38
+ | Allocating an FSGroup that owns the pod's volumes | [ ` fsGroup ` ] ( #fsgroup ) |
39
+ | Requiring the use of a read only root file system | ` readOnlyRootFilesystem ` |
33
40
34
41
_ Pod Security Policies_ are comprised of settings and strategies that
35
42
control the security features a pod has access to. These settings fall
@@ -48,34 +55,34 @@ specified value falls into the set of allowable values.
48
55
49
56
### RunAsUser
50
57
51
- - * MustRunAs* - Requires a ` * range* ` to be configured. Uses the first value
58
+ - * MustRunAs* - Requires a ` range ` to be configured. Uses the first value
52
59
of the range as the default. Validates against the configured range.
53
60
- * MustRunAsNonRoot* - Requires that the pod be submitted with a non-zero
54
- ` * runAsUser* ` or have the ` USER ` directive defined in the image. No default
61
+ ` runAsUser ` or have the ` USER ` directive defined in the image. No default
55
62
provided.
56
- - * RunAsAny* - No default provided. Allows any ` * runAsUser* ` to be specified.
63
+ - * RunAsAny* - No default provided. Allows any ` runAsUser ` to be specified.
57
64
58
- ### SELinuxContext
65
+ ### SELinux
59
66
60
- - * MustRunAs* - Requires ` * seLinuxOptions* ` to be configured if not using
61
- pre-allocated values. Uses ` * seLinuxOptions* ` as the default. Validates against
62
- ` * seLinuxOptions* ` .
63
- - * RunAsAny* - No default provided. Allows any ` * seLinuxOptions* ` to be
67
+ - * MustRunAs* - Requires ` seLinuxOptions ` to be configured if not using
68
+ pre-allocated values. Uses ` seLinuxOptions ` as the default. Validates against
69
+ ` seLinuxOptions ` .
70
+ - * RunAsAny* - No default provided. Allows any ` seLinuxOptions ` to be
64
71
specified.
65
72
66
73
### SupplementalGroups
67
74
68
75
- * MustRunAs* - Requires at least one range to be specified. Uses the
69
76
minimum value of the first range as the default. Validates against all ranges.
70
- - * RunAsAny* - No default provided. Allows any ` * supplementalGroups* ` to be
77
+ - * RunAsAny* - No default provided. Allows any ` supplementalGroups ` to be
71
78
specified.
72
79
73
80
### FSGroup
74
81
75
82
- * MustRunAs* - Requires at least one range to be specified. Uses the
76
83
minimum value of the first range as the default. Validates against the
77
84
first ID in the first range.
78
- - * RunAsAny* - No default provided. Allows any ` * fsGroup* ` ID to be specified.
85
+ - * RunAsAny* - No default provided. Allows any ` fsGroup ` ID to be specified.
79
86
80
87
### Controlling Volumes
81
88
0 commit comments