Interface ClusterProps
- All Superinterfaces:
ClusterOptions,CommonClusterOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ClusterProps.Jsii$Proxy
Example:
import software.amazon.awscdk.cdk.lambdalayer.kubectl.v34.KubectlV34Layer;
// or
Vpc vpc;
Cluster.Builder.create(this, "MyCluster")
.kubectlMemory(Size.gibibytes(4))
.version(KubernetesVersion.V1_34)
.kubectlLayer(new KubectlV34Layer(this, "kubectl"))
.build();
Cluster.fromClusterAttributes(this, "MyCluster", ClusterAttributes.builder()
.kubectlMemory(Size.gibibytes(4))
.vpc(vpc)
.clusterName("cluster-name")
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forClusterPropsstatic final classAn implementation forClusterProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterProps.Builderbuilder()default BooleanWhether or not IAM principal of the cluster creator was set as a cluster admin access entry during cluster creation time.default BooleanIf you set this value to False when creating a cluster, the default networking add-ons will not be installed.default NumberNumber of instances to allocate as an initial capacity for this cluster.default InstanceTypeThe instance type to use for the default capacity.default DefaultCapacityTypeThe default capacity type for the cluster.default IRoleThe IAM role to pass to the Kubectl Lambda Handler.getTags()The tags assigned to the EKS cluster.Methods inherited from interface software.amazon.awscdk.services.eks.ClusterOptions
getAlbController, getAuthenticationMode, getAwscliLayer, getClusterHandlerEnvironment, getClusterHandlerSecurityGroup, getClusterLogging, getCoreDnsComputeType, getEndpointAccess, getIpFamily, getKubectlEnvironment, getKubectlLayer, getKubectlMemory, getMastersRole, getOnEventLayer, getOutputMastersRoleArn, getPlaceClusterHandlerInVpc, getPrune, getRemoteNodeNetworks, getRemotePodNetworks, getRemovalPolicy, getSecretsEncryptionKey, getServiceIpv4CidrMethods inherited from interface software.amazon.awscdk.services.eks.CommonClusterOptions
getClusterName, getOutputClusterName, getOutputConfigCommand, getRole, getSecurityGroup, getVersion, getVpc, getVpcSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBootstrapClusterCreatorAdminPermissions
Whether or not IAM principal of the cluster creator was set as a cluster admin access entry during cluster creation time.Changing this value after the cluster has been created will result in the cluster being replaced.
Default: true
-
getBootstrapSelfManagedAddons
If you set this value to False when creating a cluster, the default networking add-ons will not be installed.The default networking addons include vpc-cni, coredns, and kube-proxy. Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.
Changing this value after the cluster has been created will result in the cluster being replaced.
Default: true
-
getDefaultCapacity
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.addAutoScalingGroupCapacityto add additional customized capacity. Set this to0is you wish to avoid the initial capacity allocation.Default: 2
-
getDefaultCapacityInstance
The instance type to use for the default capacity.This will only be taken into account if
defaultCapacityis > 0.Default: m5.large
-
getDefaultCapacityType
The default capacity type for the cluster.Default: NODEGROUP
-
getKubectlLambdaRole
The IAM role to pass to the Kubectl Lambda Handler.Default: - Default Lambda IAM Execution Role
-
getTags
The tags assigned to the EKS cluster.Default: - none
-
builder
- Returns:
- a
ClusterProps.BuilderofClusterProps
-