Interface ClusterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ClusterProps.Jsii$Proxy
Example:
Cluster.Builder.create(this, "cluster")
.defaultCapacity(10)
.defaultCapacityInstance(new InstanceType("m2.xlarge"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated.static final classDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterProps.Builderbuilder()Deprecated.default StringDeprecated.default NumberDeprecated.default InstanceTypeDeprecated.default BooleanDeprecated.default IRoleDeprecated.default BooleanDeprecated.default BooleanDeprecated.default BooleanDeprecated.default IRolegetRole()Deprecated.default ISecurityGroupDeprecated.default StringDeprecated.default IVpcgetVpc()Deprecated.default List<SubnetSelection>Deprecated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterName
Deprecated.(deprecated) Name for the cluster.Default: - Automatically generated name
-
getDefaultCapacity
Deprecated.(deprecated) Number of instances to allocate as an initial capacity for this cluster.Instance type can be configured through
defaultCapacityInstanceType, which defaults tom5.large.Use
cluster.addCapacityto add additional customized capacity. Set this to0is you wish to avoid the initial capacity allocation.Default: 2
-
getDefaultCapacityInstance
Deprecated.(deprecated) The instance type to use for the default capacity.This will only be taken into account if
defaultCapacityis > 0.Default: m5.large
-
getKubectlEnabled
Deprecated.(deprecated) Allows definingkubectrl-related resources on this cluster.If this is disabled, it will not be possible to use the following capabilities:
addResourceaddRoleMappingaddUserMappingaddMastersRoleandprops.mastersRole
If this is disabled, the cluster can only be managed by issuing
kubectlcommands from a session that uses the IAM role/user that created the account.NOTE: changing this value will destoy the cluster. This is because a managable cluster must be created using an AWS CloudFormation custom resource which executes with an IAM role owned by the CDK app.
Default: true The cluster can be managed by the AWS CDK application.
-
getMastersRole
Deprecated.(deprecated) An IAM role that will be added to thesystem:mastersKubernetes RBAC group.Default: - By default, it will only possible to update this Kubernetes system by adding resources to this cluster via `addResource` or by defining `KubernetesResource` resources in your AWS CDK app. Use this if you wish to grant cluster administration privileges to another role.
-
getOutputClusterName
Deprecated.(deprecated) Determines whether a CloudFormation output with the name of the cluster will be synthesized.Default: false
-
getOutputConfigCommand
Deprecated.(deprecated) Determines whether a CloudFormation output with theaws eks update-kubeconfigcommand will be synthesized.This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
-
getOutputMastersRoleArn
Deprecated.(deprecated) Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (ifmastersRoleis specified).Default: false
-
getRole
Deprecated.(deprecated) Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.Default: - A role is automatically created for you
-
getSecurityGroup
Deprecated.(deprecated) Security Group to use for Control Plane ENIs.Default: - A security group is automatically created
-
getVersion
Deprecated.(deprecated) The Kubernetes version to run in the cluster.Default: - If not supplied, will use Amazon default version
-
getVpc
Deprecated.(deprecated) The VPC in which to create the Cluster.Default: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
-
getVpcSubnets
Deprecated.(deprecated) Where to place EKS Control Plane ENIs.If you want to create public load balancers, this must include public subnets.
For example, to only select private subnets, supply the following:
Map<String, SubnetType>[] vpcSubnets = List.of(Map.of("subnetType", SubnetType.PRIVATE_WITH_NAT));Default: - All public and private subnets
-
builder
Deprecated.- Returns:
- a
ClusterProps.BuilderofClusterProps
-