Interface FargateProfileOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
FargateProfileProps
- All Known Implementing Classes:
FargateProfileOptions.Jsii$Proxy
,FargateProfileProps.Jsii$Proxy
Example:
Cluster cluster; cluster.addFargateProfile("MyProfile", FargateProfileOptions.builder() .selectors(List.of(Selector.builder().namespace("default").build())) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFargateProfileOptions
static final class
An implementation forFargateProfileOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The name of the Fargate profile.default IRole
The 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 SubnetSelection
Select which subnets to launch your pods into.default IVpc
getVpc()
The VPC from which to select subnets to launch your pods into.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSelectors
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.
-
getFargateProfileName
The name of the Fargate profile.Default: - generated
-
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
- See Also:
-
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
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 the EKS cluster
-
builder
- Returns:
- a
FargateProfileOptions.Builder
ofFargateProfileOptions
-