- All Superinterfaces:
- All Known Subinterfaces:
Cluster cluster; cluster.addFargateProfile("MyProfile", FargateProfileOptions.builder() .selectors(List.of(Selector.builder().namespace("default").build())) .build());
Nested Class Summary
Method SummaryModifier and TypeMethodDescription
default StringThe name of the Fargate profile.
default IRoleThe pod execution role to use for pods that match the selectors in the Fargate profile.The selectors to match for pods to use this Fargate profile.
default SubnetSelectionSelect which subnets to launch your pods into.
getVpc()The VPC from which to select subnets to launch your pods into.
Methods inherited from interface software.amazon.jsii.JsiiSerializable
getSelectorsThe 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.
getFargateProfileName@Stability(Stable) @Nullable default String getFargateProfileName()The name of the Fargate profile.
Default: - generated
getPodExecutionRole@Stability(Stable) @Nullable default IRole getPodExecutionRole()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
getSubnetSelection@Stability(Stable) @Nullable default SubnetSelection getSubnetSelection()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.
You must specify the VPC to customize the subnet selection
Default: - all private subnets of the VPC are selected.
getVpc@Stability(Stable) @Nullable default IVpc getVpc()The VPC from which to select subnets to launch your pods into.
By default, all private subnets are selected. You can customize this using
Default: - all private subnets used by the EKS cluster
builder@Stability(Stable) static FargateProfileOptions.Builder builder()