Interface ICluster
- All Superinterfaces:
IClusterRef,IConnectable,software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ICluster.Jsii$Default
- All Known Implementing Classes:
Cluster,FargateCluster,ICluster.Jsii$Proxy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forICluster.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddCdk8sChart(String id, software.constructs.Construct chart) Defines a CDK8s chart in this cluster.addCdk8sChart(String id, software.constructs.Construct chart, KubernetesManifestOptions options) Defines a CDK8s chart in this cluster.addHelmChart(String id, HelmChartOptions options) Defines a Helm chart in this cluster.addManifest(String id, Map<String, Object>... manifest) Defines a Kubernetes resource in this cluster.Creates a new service account with corresponding IAM Role (IRSA).addServiceAccount(String id, ServiceAccountOptions options) Creates a new service account with corresponding IAM Role (IRSA).voidconnectAutoScalingGroupCapacity(AutoScalingGroup autoScalingGroup, AutoScalingGroupOptions options) Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.The certificate-authority-data for your cluster.Amazon Resource Name (ARN) or alias of the customer master key (CMK).The API Server endpoint URL.The physical name of the Cluster.The cluster security group that was created by Amazon EKS for the cluster.The id of the cluster security group that was created by Amazon EKS for the cluster.default IAddonThe EKS Pod Identity Agent addon for the EKS cluster.default IpFamilySpecify which IP family is used to assign Kubernetes pod and service IP addresses.default IKubectlProviderKubectl Provider for issuing kubectl commands against it.default KubectlProviderOptionsOptions for creating the kubectl provider - a lambda function that executeskubectlandhelmagainst the cluster.The Open ID Connect Provider of the cluster used to configure Service Accounts.getPrune()Indicates whether Kubernetes resources can be automatically pruned.getVpc()The VPC in which this Cluster was created.Methods inherited from interface software.amazon.awscdk.interfaces.eks.IClusterRef
getClusterRefMethods inherited from interface software.amazon.awscdk.services.ec2.IConnectable
getConnectionsMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterArn
The unique ARN assigned to the service by AWS in the form of arn:aws:eks:. -
getClusterCertificateAuthorityData
The certificate-authority-data for your cluster. -
getClusterEncryptionConfigKeyArn
Amazon Resource Name (ARN) or alias of the customer master key (CMK). -
getClusterEndpoint
The API Server endpoint URL. -
getClusterName
The physical name of the Cluster. -
getClusterSecurityGroup
The cluster security group that was created by Amazon EKS for the cluster. -
getClusterSecurityGroupId
The id of the cluster security group that was created by Amazon EKS for the cluster. -
getOpenIdConnectProvider
The Open ID Connect Provider of the cluster used to configure Service Accounts. -
getPrune
Indicates whether Kubernetes resources can be automatically pruned.When this is enabled (default), prune labels will be allocated and injected to each resource. These labels will then be used when issuing the
kubectl applyoperation with the--pruneswitch. -
getVpc
The VPC in which this Cluster was created. -
getEksPodIdentityAgent
The EKS Pod Identity Agent addon for the EKS cluster.The EKS Pod Identity Agent is responsible for managing the temporary credentials used by pods in the cluster to access AWS resources. It runs as a DaemonSet on each node and provides the necessary credentials to the pods based on their associated service account.
This property returns the
CfnAddonresource representing the EKS Pod Identity Agent addon. If the addon has not been created yet, it will be created and returned. -
getIpFamily
Specify which IP family is used to assign Kubernetes pod and service IP addresses.Default: - IpFamily.IP_V4
- See Also:
-
getKubectlProvider
Kubectl Provider for issuing kubectl commands against it.If not defined, a default provider will be used
-
getKubectlProviderOptions
Options for creating the kubectl provider - a lambda function that executeskubectlandhelmagainst the cluster.If defined,
kubectlLayeris a required property.Default: - kubectl provider will not be created
-
addCdk8sChart
@Stability(Stable) @NotNull KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart, @Nullable KubernetesManifestOptions options) Defines a CDK8s chart in this cluster.- Parameters:
id- logical id of this chart. This parameter is required.chart- the cdk8s chart. This parameter is required.options-- Returns:
- a
KubernetesManifestconstruct representing the chart.
-
addCdk8sChart
@Stability(Stable) @NotNull KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart) Defines a CDK8s chart in this cluster.- Parameters:
id- logical id of this chart. This parameter is required.chart- the cdk8s chart. This parameter is required.- Returns:
- a
KubernetesManifestconstruct representing the chart.
-
addHelmChart
@Stability(Stable) @NotNull HelmChart addHelmChart(@NotNull String id, @NotNull HelmChartOptions options) Defines a Helm chart in this cluster.- Parameters:
id- logical id of this chart. This parameter is required.options- options of this chart. This parameter is required.- Returns:
- a
HelmChartconstruct
-
addManifest
@Stability(Stable) @NotNull KubernetesManifest addManifest(@NotNull String id, @NotNull Map<String, Object>... manifest) Defines a Kubernetes resource in this cluster.The manifest will be applied/deleted using kubectl as needed.
- Parameters:
id- logical id of this manifest. This parameter is required.manifest- a list of Kubernetes resource specifications. This parameter is required.- Returns:
- a
KubernetesManifestobject.
-
addServiceAccount
@Stability(Stable) @NotNull ServiceAccount addServiceAccount(@NotNull String id, @Nullable ServiceAccountOptions options) Creates a new service account with corresponding IAM Role (IRSA).- Parameters:
id- logical id of service account. This parameter is required.options- service account options.
-
addServiceAccount
Creates a new service account with corresponding IAM Role (IRSA).- Parameters:
id- logical id of service account. This parameter is required.
-
connectAutoScalingGroupCapacity
@Stability(Stable) void connectAutoScalingGroupCapacity(@NotNull AutoScalingGroup autoScalingGroup, @NotNull AutoScalingGroupOptions options) Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.The AutoScalingGroup must be running an EKS-optimized AMI containing the /etc/eks/bootstrap.sh script. This method will configure Security Groups, add the right policies to the instance role, apply the right tags, and add the required user data to the instance's launch configuration.
Prefer to use
addAutoScalingGroupCapacityif possible.- Parameters:
autoScalingGroup- [disable-awslint:ref-via-interface]. This parameter is required.options- options for adding auto scaling groups, like customizing the bootstrap script. This parameter is required.- See Also:
-