public static interface V1.PodSecurityContextOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
long |
getFsGroup()
A special supplemental group that applies to all containers in a pod.
|
long |
getRunAsGroup()
The GID to run the entrypoint of the container process.
|
boolean |
getRunAsNonRoot()
Indicates that the container must run as a non-root user.
|
long |
getRunAsUser()
The UID to run the entrypoint of the container process.
|
V1.SELinuxOptions |
getSeLinuxOptions()
The SELinux context to be applied to all containers.
|
V1.SELinuxOptionsOrBuilder |
getSeLinuxOptionsOrBuilder()
The SELinux context to be applied to all containers.
|
long |
getSupplementalGroups(int index)
A list of groups applied to the first process run in each container, in addition
to the container's primary GID.
|
int |
getSupplementalGroupsCount()
A list of groups applied to the first process run in each container, in addition
to the container's primary GID.
|
List<Long> |
getSupplementalGroupsList()
A list of groups applied to the first process run in each container, in addition
to the container's primary GID.
|
V1.Sysctl |
getSysctls(int index)
Sysctls hold a list of namespaced sysctls used for the pod.
|
int |
getSysctlsCount()
Sysctls hold a list of namespaced sysctls used for the pod.
|
List<V1.Sysctl> |
getSysctlsList()
Sysctls hold a list of namespaced sysctls used for the pod.
|
V1.SysctlOrBuilder |
getSysctlsOrBuilder(int index)
Sysctls hold a list of namespaced sysctls used for the pod.
|
List<? extends V1.SysctlOrBuilder> |
getSysctlsOrBuilderList()
Sysctls hold a list of namespaced sysctls used for the pod.
|
boolean |
hasFsGroup()
A special supplemental group that applies to all containers in a pod.
|
boolean |
hasRunAsGroup()
The GID to run the entrypoint of the container process.
|
boolean |
hasRunAsNonRoot()
Indicates that the container must run as a non-root user.
|
boolean |
hasRunAsUser()
The UID to run the entrypoint of the container process.
|
boolean |
hasSeLinuxOptions()
The SELinux context to be applied to all containers.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasSeLinuxOptions()
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. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;
V1.SELinuxOptions getSeLinuxOptions()
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. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;
V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder()
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. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;
boolean hasRunAsUser()
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. +optional
optional int64 runAsUser = 2;
long getRunAsUser()
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. +optional
optional int64 runAsUser = 2;
boolean hasRunAsGroup()
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. +optional
optional int64 runAsGroup = 6;
long getRunAsGroup()
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. +optional
optional int64 runAsGroup = 6;
boolean hasRunAsNonRoot()
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional
optional bool runAsNonRoot = 3;
boolean getRunAsNonRoot()
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional
optional bool runAsNonRoot = 3;
List<Long> getSupplementalGroupsList()
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. +optional
repeated int64 supplementalGroups = 4;
int getSupplementalGroupsCount()
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. +optional
repeated int64 supplementalGroups = 4;
long getSupplementalGroups(int index)
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. +optional
repeated int64 supplementalGroups = 4;
boolean hasFsGroup()
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: 1. 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---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional
optional int64 fsGroup = 5;
long getFsGroup()
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: 1. 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---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional
optional int64 fsGroup = 5;
List<V1.Sysctl> getSysctlsList()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;
V1.Sysctl getSysctls(int index)
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;
int getSysctlsCount()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;
List<? extends V1.SysctlOrBuilder> getSysctlsOrBuilderList()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;
V1.SysctlOrBuilder getSysctlsOrBuilder(int index)
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;
Copyright © 2021. All rights reserved.