View a markdown version of this page

AWS::Batch::JobDefinition EksPodSecurityContext - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::Batch::JobDefinition EksPodSecurityContext

The security context for the pod. The settings apply to all containers in the pod when the container does not specify an overriding value. For more information, see Set the security context for a Pod in the Kubernetes documentation.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "FsGroup" : Integer, "RunAsGroup" : Integer, "RunAsNonRoot" : Boolean, "RunAsUser" : Integer, "SeccompProfile" : EksSeccompProfile }

YAML

FsGroup: Integer RunAsGroup: Integer RunAsNonRoot: Boolean RunAsUser: Integer SeccompProfile: EksSeccompProfile

Properties

FsGroup

A special supplemental group that is applied to all containers in the pod. Some volume types allow Kubernetes to change the ownership and permissions of the volume contents to this group when the volume is mounted. The supported value range is 0 through 2147483647.

Required: No

Type: Integer

Update requires: No interruption

RunAsGroup

The primary group ID that runs containers in the pod when a container does not specify its own group ID. The supported value range is 0 through 2147483647.

Required: No

Type: Integer

Update requires: No interruption

RunAsNonRoot

Specifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.

Required: No

Type: Boolean

Update requires: No interruption

RunAsUser

The user ID that runs containers in the pod when a container does not specify its own user ID. The supported value range is 0 through 2147483647.

Required: No

Type: Integer

Update requires: No interruption

SeccompProfile

The default seccomp profile for containers in the pod. A container-level seccomp profile overrides this value.

Required: No

Type: EksSeccompProfile

Update requires: No interruption