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
Configuration props for EKS Fargate Profiles.
- Parameters
selectors (
List
[Selector
]) – 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
]) – The name of the Fargate profile. Default: - generatedpod_execution_role (
Optional
[IRole
]) – 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 createdsubnet_selection (
Optional
[SubnetSelection
]) – 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
]) – The VPC from which to select subnets to launch your pods into. By default, all private subnets are selected. You can customize this usingsubnetSelection
. Default: - all private subnets used by theEKS clustercluster (
Cluster
) – The EKS cluster to apply the Fargate profile to. [disable-awslint:ref-via-interface]
Attributes
-
cluster
¶ The EKS cluster to apply the Fargate profile to.
[disable-awslint:ref-via-interface]
- Return type
-
fargate_profile_name
¶ The name of the Fargate profile.
- Default
generated
- Return type
Optional
[str
]
-
pod_execution_role
¶ 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
- Return type
Optional
[IRole
]
-
selectors
¶ 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.
- Return type
List
[Selector
]
-
subnet_selection
¶ 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.
- Return type
Optional
[SubnetSelection
]