Interface ClusterProps
- All Superinterfaces:
ClusterCommonOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ClusterProps.Jsii$Proxy
Example:
Cluster cluster = Cluster.Builder.create(this, "ManagedNodeCluster")
.version(KubernetesVersion.V1_34)
.defaultCapacityType(DefaultCapacityType.NODEGROUP)
.build();
// Add a Fargate Profile for specific workloads (e.g., default namespace)
cluster.addFargateProfile("FargateProfile", FargateProfileOptions.builder()
.selectors(List.of(Selector.builder().namespace("default").build()))
.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 ComputeConfigConfiguration for compute settings in Auto Mode.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 BooleanDetermines whether a CloudFormation output with theaws eks update-kubeconfigcommand will be synthesized.Methods inherited from interface software.amazon.awscdk.services.eks_v2.ClusterCommonOptions
getAlbController, getClusterLogging, getClusterName, getCoreDnsComputeType, getEndpointAccess, getIpFamily, getKubectlProviderOptions, getMastersRole, getPrune, getRemoteNodeNetworks, getRemotePodNetworks, getRemovalPolicy, getRole, getSecretsEncryptionKey, getSecurityGroup, getServiceIpv4Cidr, getTags, 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 if the mode is not EKS Auto Mode
-
getCompute
Configuration for compute settings in Auto Mode.When enabled, EKS will automatically manage compute resources.
Default: - Auto Mode compute disabled
-
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: AUTOMODE
-
getOutputConfigCommand
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
-
builder
- Returns:
- a
ClusterProps.BuilderofClusterProps
-