|
2 | 2 | "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.",
|
3 | 3 | "properties": {
|
4 | 4 | "fsGroup": {
|
5 |
| - "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", |
| 5 | + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", |
6 | 6 | "format": "int64",
|
7 | 7 | "type": [
|
8 | 8 | "integer",
|
9 | 9 | "null"
|
10 | 10 | ]
|
11 | 11 | },
|
12 | 12 | "fsGroupChangePolicy": {
|
13 |
| - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.", |
| 13 | + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", |
14 | 14 | "type": [
|
15 | 15 | "string",
|
16 | 16 | "null"
|
17 | 17 | ]
|
18 | 18 | },
|
19 | 19 | "runAsGroup": {
|
20 |
| - "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", |
| 20 | + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", |
21 | 21 | "format": "int64",
|
22 | 22 | "type": [
|
23 | 23 | "integer",
|
|
32 | 32 | ]
|
33 | 33 | },
|
34 | 34 | "runAsUser": {
|
35 |
| - "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", |
| 35 | + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", |
36 | 36 | "format": "int64",
|
37 | 37 | "type": [
|
38 | 38 | "integer",
|
|
41 | 41 | },
|
42 | 42 | "seLinuxOptions": {
|
43 | 43 | "$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SELinuxOptions",
|
44 |
| - "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container." |
| 44 | + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows." |
45 | 45 | },
|
46 | 46 | "seccompProfile": {
|
47 | 47 | "$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.SeccompProfile",
|
48 |
| - "description": "The seccomp options to use by the containers in this pod." |
| 48 | + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." |
49 | 49 | },
|
50 | 50 | "supplementalGroups": {
|
51 |
| - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", |
| 51 | + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.", |
52 | 52 | "items": {
|
53 | 53 | "format": "int64",
|
54 | 54 | "type": [
|
|
62 | 62 | ]
|
63 | 63 | },
|
64 | 64 | "sysctls": {
|
65 |
| - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.", |
| 65 | + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", |
66 | 66 | "items": {
|
67 | 67 | "$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.Sysctl"
|
68 | 68 | },
|
|
73 | 73 | },
|
74 | 74 | "windowsOptions": {
|
75 | 75 | "$ref": "_definitions.json#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions",
|
76 |
| - "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence." |
| 76 | + "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." |
77 | 77 | }
|
78 | 78 | },
|
79 | 79 | "type": "object",
|
|
0 commit comments