Interface ICluster.Jsii$Default
- All Superinterfaces:
ICluster
,IConnectable
,IConnectable.Jsii$Default
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
,IResource
,IResource.Jsii$Default
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ICluster.Jsii$Proxy
- Enclosing interface:
ICluster
ICluster
.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.eks.v2.alpha.ICluster
ICluster.Jsii$Default, ICluster.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault KubernetesManifest
addCdk8sChart
(String id, software.constructs.Construct chart, KubernetesManifestOptions options) (experimental) Defines a CDK8s chart in this cluster.default HelmChart
addHelmChart
(String id, HelmChartOptions options) (experimental) Defines a Helm chart in this cluster.default KubernetesManifest
addManifest
(String id, Map<String, Object>... manifest) (experimental) Defines a Kubernetes resource in this cluster.default ServiceAccount
addServiceAccount
(String id, ServiceAccountOptions options) (experimental) Creates a new service account with corresponding IAM Role (IRSA).default void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.default void
connectAutoScalingGroupCapacity
(AutoScalingGroup autoScalingGroup, AutoScalingGroupOptions options) (experimental) Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.default String
(experimental) The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.default String
(experimental) The certificate-authority-data for your cluster.default String
(experimental) Amazon Resource Name (ARN) or alias of the customer master key (CMK).default String
(experimental) The API Server endpoint URL.default String
(experimental) The physical name of the Cluster.default ISecurityGroup
(experimental) The cluster security group that was created by Amazon EKS for the cluster.default String
(experimental) The id of the cluster security group that was created by Amazon EKS for the cluster.default Connections
The network connections associated with this resource.default IAddon
(experimental) The EKS Pod Identity Agent addon for the EKS cluster.default ResourceEnvironment
getEnv()
The environment this resource belongs to.default IpFamily
(experimental) Specify which IP family is used to assign Kubernetes pod and service IP addresses.default IKubectlProvider
(experimental) Kubectl Provider for issuing kubectl commands against it.default KubectlProviderOptions
(experimental) Options for creating the kubectl provider - a lambda function that executeskubectl
andhelm
against the cluster.default software.constructs.Node
getNode()
The tree node.default IOpenIdConnectProvider
(experimental) The Open ID Connect Provider of the cluster used to configure Service Accounts.default Boolean
getPrune()
(experimental) Indicates whether Kubernetes resources can be automatically pruned.default Stack
getStack()
The stack in which this resource is defined.default IVpc
getVpc()
(experimental) The VPC in which this Cluster was created.Methods inherited from interface software.amazon.awscdk.services.eks.v2.alpha.ICluster
addCdk8sChart, addServiceAccount
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnections
in interfaceIConnectable
- Specified by:
getConnections
in interfaceIConnectable.Jsii$Default
-
getClusterArn
(experimental) The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.- Specified by:
getClusterArn
in interfaceICluster
-
getClusterCertificateAuthorityData
(experimental) The certificate-authority-data for your cluster.- Specified by:
getClusterCertificateAuthorityData
in interfaceICluster
-
getClusterEncryptionConfigKeyArn
(experimental) Amazon Resource Name (ARN) or alias of the customer master key (CMK).- Specified by:
getClusterEncryptionConfigKeyArn
in interfaceICluster
-
getClusterEndpoint
(experimental) The API Server endpoint URL.- Specified by:
getClusterEndpoint
in interfaceICluster
-
getClusterName
(experimental) The physical name of the Cluster.- Specified by:
getClusterName
in interfaceICluster
-
getClusterSecurityGroup
(experimental) The cluster security group that was created by Amazon EKS for the cluster.- Specified by:
getClusterSecurityGroup
in interfaceICluster
-
getClusterSecurityGroupId
(experimental) The id of the cluster security group that was created by Amazon EKS for the cluster.- Specified by:
getClusterSecurityGroupId
in interfaceICluster
-
getOpenIdConnectProvider
(experimental) The Open ID Connect Provider of the cluster used to configure Service Accounts.- Specified by:
getOpenIdConnectProvider
in interfaceICluster
-
getPrune
(experimental) 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 apply
operation with the--prune
switch. -
getVpc
(experimental) The VPC in which this Cluster was created. -
getEksPodIdentityAgent
(experimental) 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
CfnAddon
resource representing the EKS Pod Identity Agent addon. If the addon has not been created yet, it will be created and returned.- Specified by:
getEksPodIdentityAgent
in interfaceICluster
-
getIpFamily
(experimental) Specify which IP family is used to assign Kubernetes pod and service IP addresses.Default: - IpFamily.IP_V4
- Specified by:
getIpFamily
in interfaceICluster
- See Also:
-
getKubectlProvider
(experimental) Kubectl Provider for issuing kubectl commands against it.If not defined, a default provider will be used
- Specified by:
getKubectlProvider
in interfaceICluster
-
getKubectlProviderOptions
(experimental) Options for creating the kubectl provider - a lambda function that executeskubectl
andhelm
against the cluster.If defined,
kubectlLayer
is a required property.If not defined, kubectl provider will not be created by default.
- Specified by:
getKubectlProviderOptions
in interfaceICluster
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY
), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN
).- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
addCdk8sChart
@Stability(Experimental) @NotNull default KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart, @Nullable KubernetesManifestOptions options) (experimental) Defines a CDK8s chart in this cluster.- Specified by:
addCdk8sChart
in interfaceICluster
- Parameters:
id
- logical id of this chart. This parameter is required.chart
- the cdk8s chart. This parameter is required.options
-- Returns:
- a
KubernetesManifest
construct representing the chart.
-
addHelmChart
@Stability(Experimental) @NotNull default HelmChart addHelmChart(@NotNull String id, @NotNull HelmChartOptions options) (experimental) Defines a Helm chart in this cluster.- Specified by:
addHelmChart
in interfaceICluster
- Parameters:
id
- logical id of this chart. This parameter is required.options
- options of this chart. This parameter is required.- Returns:
- a
HelmChart
construct
-
addManifest
@Stability(Experimental) @NotNull default KubernetesManifest addManifest(@NotNull String id, @NotNull Map<String, Object>... manifest) (experimental) Defines a Kubernetes resource in this cluster.The manifest will be applied/deleted using kubectl as needed.
- Specified by:
addManifest
in interfaceICluster
- Parameters:
id
- logical id of this manifest. This parameter is required.manifest
- a list of Kubernetes resource specifications. This parameter is required.- Returns:
- a
KubernetesManifest
object.
-
addServiceAccount
@Stability(Experimental) @NotNull default ServiceAccount addServiceAccount(@NotNull String id, @Nullable ServiceAccountOptions options) (experimental) Creates a new service account with corresponding IAM Role (IRSA).- Specified by:
addServiceAccount
in interfaceICluster
- Parameters:
id
- logical id of service account. This parameter is required.options
- service account options.
-
connectAutoScalingGroupCapacity
@Stability(Experimental) default void connectAutoScalingGroupCapacity(@NotNull AutoScalingGroup autoScalingGroup, @NotNull AutoScalingGroupOptions options) (experimental) 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
addAutoScalingGroupCapacity
if possible.- Specified by:
connectAutoScalingGroupCapacity
in interfaceICluster
- 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:
-