FargateProfileProps

class aws_cdk.aws_eks.FargateProfileProps(*, selectors, fargate_profile_name=None, pod_execution_role=None, subnet_selection=None, vpc=None, cluster)

Bases: aws_cdk.aws_eks.FargateProfileOptions

(experimental) Configuration props for EKS Fargate Profiles.

Parameters
  • selectors (List[Selector]) – (experimental) The selectors to match for pods to use this Fargate profile. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. At least one selector is required and you may specify up to five selectors.

  • fargate_profile_name (Optional[str]) – (experimental) The name of the Fargate profile. Default: - generated

  • pod_execution_role (Optional[IRole]) – (experimental) The pod execution role to use for pods that match the selectors in the Fargate profile. The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. Default: - a role will be automatically created

  • subnet_selection (Optional[SubnetSelection]) – (experimental) Select which subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are allowed. Default: - all private subnets of the VPC are selected.

  • vpc (Optional[IVpc]) – (experimental) The VPC from which to select subnets to launch your pods into. By default, all private subnets are selected. You can customize this using subnetSelection. Default: - all private subnets used by theEKS cluster

  • cluster (Cluster) – (experimental) The EKS cluster to apply the Fargate profile to. [disable-awslint:ref-via-interface]

Stability

experimental

Attributes

cluster

(experimental) The EKS cluster to apply the Fargate profile to.

[disable-awslint:ref-via-interface]

Stability

experimental

Return type

Cluster

fargate_profile_name

(experimental) The name of the Fargate profile.

Default
  • generated

Stability

experimental

Return type

Optional[str]

pod_execution_role

(experimental) The pod execution role to use for pods that match the selectors in the Fargate profile.

The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories.

Default
  • a role will be automatically created

See

https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html

Stability

experimental

Return type

Optional[IRole]

selectors

(experimental) The selectors to match for pods to use this Fargate profile.

Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace.

At least one selector is required and you may specify up to five selectors.

Stability

experimental

Return type

List[Selector]

subnet_selection

(experimental) Select which subnets to launch your pods into.

At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are allowed.

Default
  • all private subnets of the VPC are selected.

Stability

experimental

Return type

Optional[SubnetSelection]

vpc

(experimental) The VPC from which to select subnets to launch your pods into.

By default, all private subnets are selected. You can customize this using subnetSelection.

Default
  • all private subnets used by theEKS cluster

Stability

experimental

Return type

Optional[IVpc]