@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.929Z") @Stability(value=Stable) public interface ClusterProps extends software.amazon.jsii.JsiiSerializable, ClusterOptions
Example:
Vpc vpc;
Cluster.Builder.create(this, "HelloEKS")
.version(KubernetesVersion.V1_21)
.vpc(vpc)
.vpcSubnets(List.of(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_WITH_EGRESS).build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterProps.Builder
A builder for
ClusterProps |
static class |
ClusterProps.Jsii$Proxy
An implementation for
ClusterProps |
| Modifier and Type | Method and Description |
|---|---|
static ClusterProps.Builder |
builder() |
default Number |
getDefaultCapacity()
Number of instances to allocate as an initial capacity for this cluster.
|
default InstanceType |
getDefaultCapacityInstance()
The instance type to use for the default capacity.
|
default DefaultCapacityType |
getDefaultCapacityType()
The default capacity type for the cluster.
|
default IRole |
getKubectlLambdaRole()
The IAM role to pass to the Kubectl Lambda Handler.
|
default Map<String,String> |
getTags()
The tags assigned to the EKS cluster.
|
getAlbController, getClusterHandlerEnvironment, getClusterHandlerSecurityGroup, getClusterLogging, getCoreDnsComputeType, getEndpointAccess, getKubectlEnvironment, getKubectlLayer, getKubectlMemory, getMastersRole, getOnEventLayer, getOutputMastersRoleArn, getPlaceClusterHandlerInVpc, getPrune, getSecretsEncryptionKey, getServiceIpv4CidrgetClusterName, getOutputClusterName, getOutputConfigCommand, getRole, getSecurityGroup, getVersion, getVpc, getVpcSubnets@Stability(value=Stable) @Nullable default Number getDefaultCapacity()
Instance type can be configured through defaultCapacityInstanceType,
which defaults to m5.large.
Use cluster.addAutoScalingGroupCapacity to add additional customized capacity. Set this
to 0 is you wish to avoid the initial capacity allocation.
Default: 2
@Stability(value=Stable) @Nullable default InstanceType getDefaultCapacityInstance()
This will only be taken
into account if defaultCapacity is > 0.
Default: m5.large
@Stability(value=Stable) @Nullable default DefaultCapacityType getDefaultCapacityType()
Default: NODEGROUP
@Stability(value=Stable) @Nullable default IRole getKubectlLambdaRole()
Default: - Default Lambda IAM Execution Role
@Stability(value=Stable) @Nullable default Map<String,String> getTags()
Default: - none
@Stability(value=Stable) static ClusterProps.Builder builder()
builder in interface ClusterOptionsbuilder in interface CommonClusterOptionsClusterProps.Builder of ClusterPropsCopyright © 2022. All rights reserved.