Skip to content

seLinuxOptions

The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. 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 windows.

object

PropertyTypeRequiredDefaultDescription
levelstringNo-Level is SELinux level label that applies to the container.
rolestringNo-Role is a SELinux role label that applies to the container.
typestringNo-Type is a SELinux type label that applies to the container.
userstringNo-User is a SELinux user label that applies to the container.