Interface ICluster.Jsii$Default
- All Superinterfaces:
ICluster,IConnectable,IConnectable.Jsii$Default,IConstruct,software.constructs.IConstruct,IConstruct.Jsii$Default,software.constructs.IConstruct.Jsii$Default,IDependable,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.ICluster
ICluster.Jsii$Default, ICluster.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault KubernetesManifestaddCdk8sChart(String id, software.constructs.Construct chart, KubernetesManifestOptions options) Defines a CDK8s chart in this cluster.default HelmChartaddHelmChart(String id, HelmChartOptions options) Defines a Helm chart in this cluster.default KubernetesManifestaddManifest(String id, @NotNull Map<String, Object>... manifest) Defines a Kubernetes resource in this cluster.default ServiceAccountaddServiceAccount(String id, ServiceAccountOptions options) Creates a new service account with corresponding IAM Role (IRSA).default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default voidconnectAutoScalingGroupCapacity(AutoScalingGroup autoScalingGroup, AutoScalingGroupOptions options) Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.default StringThe unique ARN assigned to the service by AWS in the form of arn:aws:eks:.default StringThe certificate-authority-data for your cluster.default StringAmazon Resource Name (ARN) or alias of the customer master key (CMK).default StringThe API Server endpoint URL.default ISecurityGroupA security group to associate with the Cluster Handler's Lambdas.default StringThe physical name of the Cluster.default ISecurityGroupThe cluster security group that was created by Amazon EKS for the cluster.default StringThe id of the cluster security group that was created by Amazon EKS for the cluster.default ConnectionsThe network connections associated with this resource.default ResourceEnvironmentgetEnv()The environment this resource belongs to.Custom environment variables when runningkubectlagainst this cluster.default IRoleAn IAM role that can perform kubectl operations against this cluster.default ILayerVersionAn AWS Lambda layer that includeskubectl,helmand theawsCLI.default SizeAmount of memory to allocate to the provider's lambda function.Subnets to host thekubectlcompute resources.default IKubectlProviderKubectl Provider for issuing kubectl commands against it.default IRoleAn IAM role that can perform kubectl operations against this cluster.default ISecurityGroupA security group to use forkubectlexecution.default ConstructNodegetNode()The construct tree node for this construct.default ILayerVersionAn AWS Lambda layer that includes the NPM dependencyproxy-agent.default IOpenIdConnectProviderThe Open ID Connect Provider of the cluster used to configure Service Accounts.default BooleangetPrune()Indicates whether Kubernetes resources can be automatically pruned.default StackgetStack()The stack in which this resource is defined.default IVpcgetVpc()The VPC in which this Cluster was created.Methods inherited from interface software.amazon.awscdk.services.eks.ICluster
addCdk8sChart, addServiceAccountMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein 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:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin interfaceIConnectable.Jsii$Default
-
getClusterArn
The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.- Specified by:
getClusterArnin interfaceICluster
-
getClusterCertificateAuthorityData
The certificate-authority-data for your cluster.- Specified by:
getClusterCertificateAuthorityDatain interfaceICluster
-
getClusterEncryptionConfigKeyArn
Amazon Resource Name (ARN) or alias of the customer master key (CMK).- Specified by:
getClusterEncryptionConfigKeyArnin interfaceICluster
-
getClusterEndpoint
The API Server endpoint URL.- Specified by:
getClusterEndpointin interfaceICluster
-
getClusterName
The physical name of the Cluster.- Specified by:
getClusterNamein interfaceICluster
-
getClusterSecurityGroup
The cluster security group that was created by Amazon EKS for the cluster.- Specified by:
getClusterSecurityGroupin interfaceICluster
-
getClusterSecurityGroupId
The id of the cluster security group that was created by Amazon EKS for the cluster.- Specified by:
getClusterSecurityGroupIdin interfaceICluster
-
getOpenIdConnectProvider
The Open ID Connect Provider of the cluster used to configure Service Accounts.- Specified by:
getOpenIdConnectProviderin interfaceICluster
-
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. -
getClusterHandlerSecurityGroup
A security group to associate with the Cluster Handler's Lambdas.The Cluster Handler's Lambdas are responsible for calling AWS's EKS API.
Requires
placeClusterHandlerInVpcto be set to true.Default: - No security group.
- Specified by:
getClusterHandlerSecurityGroupin interfaceICluster
-
getKubectlEnvironment
Custom environment variables when runningkubectlagainst this cluster.- Specified by:
getKubectlEnvironmentin interfaceICluster
-
getKubectlLambdaRole
An IAM role that can perform kubectl operations against this cluster.The role should be mapped to the
system:mastersKubernetes RBAC role.This role is directly passed to the lambda handler that sends Kube Ctl commands to the cluster.
- Specified by:
getKubectlLambdaRolein interfaceICluster
-
getKubectlLayer
An AWS Lambda layer that includeskubectl,helmand theawsCLI.If not defined, a default layer will be used.
- Specified by:
getKubectlLayerin interfaceICluster
-
getKubectlMemory
Amount of memory to allocate to the provider's lambda function.- Specified by:
getKubectlMemoryin interfaceICluster
-
getKubectlPrivateSubnets
Subnets to host thekubectlcompute resources.If this is undefined, the k8s endpoint is expected to be accessible publicly.
- Specified by:
getKubectlPrivateSubnetsin interfaceICluster
-
getKubectlProvider
Kubectl Provider for issuing kubectl commands against it.If not defined, a default provider will be used
- Specified by:
getKubectlProviderin interfaceICluster
-
getKubectlRole
An IAM role that can perform kubectl operations against this cluster.The role should be mapped to the
system:mastersKubernetes RBAC role.- Specified by:
getKubectlRolein interfaceICluster
-
getKubectlSecurityGroup
A security group to use forkubectlexecution.If this is undefined, the k8s endpoint is expected to be accessible publicly.
- Specified by:
getKubectlSecurityGroupin interfaceICluster
-
getOnEventLayer
An AWS Lambda layer that includes the NPM dependencyproxy-agent.If not defined, a default layer will be used.
- Specified by:
getOnEventLayerin 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:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addCdk8sChart
@Stability(Stable) @NotNull default KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart, @Nullable KubernetesManifestOptions options) Defines a CDK8s chart in this cluster.- Specified by:
addCdk8sChartin interfaceICluster- 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.
-
addHelmChart
@Stability(Stable) @NotNull default HelmChart addHelmChart(@NotNull String id, @NotNull HelmChartOptions options) Defines a Helm chart in this cluster.- Specified by:
addHelmChartin interfaceICluster- 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 default KubernetesManifest addManifest(@NotNull String id, @NotNull @NotNull Map<String, Object>... manifest) Defines a Kubernetes resource in this cluster.The manifest will be applied/deleted using kubectl as needed.
- Specified by:
addManifestin 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
KubernetesManifestobject.
-
addServiceAccount
@Stability(Stable) @NotNull default ServiceAccount addServiceAccount(@NotNull String id, @Nullable ServiceAccountOptions options) Creates a new service account with corresponding IAM Role (IRSA).- Specified by:
addServiceAccountin interfaceICluster- Parameters:
id- logical id of service account. This parameter is required.options- service account options.
-
connectAutoScalingGroupCapacity
@Stability(Stable) default 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.
Spot instances will be labeled
lifecycle=Ec2Spotand tainted withPreferNoSchedule. If kubectl is enabled, the spot interrupt handler daemon will be installed on all spot instances to handle EC2 Spot Instance Termination Notices.Prefer to use
addAutoScalingGroupCapacityif possible.- Specified by:
connectAutoScalingGroupCapacityin 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:
-