@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:38.444Z") @Deprecated public class Cluster extends Resource implements ICluster
This is a fully managed cluster of API Servers (control-plane) The user is still required to create the worker nodes.
Example:
Cluster cluster; // option 1: use a construct // option 1: use a construct HelmChart.Builder.create(this, "NginxIngress") .cluster(cluster) .chart("nginx-ingress") .repository("https://helm.nginx.com/stable") .namespace("kube-system") .build(); // or, option2: use `addChart` cluster.addChart("NginxIngress", HelmChartOptions.builder() .chart("nginx-ingress") .repository("https://helm.nginx.com/stable") .namespace("kube-system") .build());
Modifier and Type | Class and Description |
---|---|
static class |
Cluster.Builder
Deprecated.
|
ICluster.Jsii$Default, ICluster.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
|
Cluster(Construct scope,
java.lang.String id)
Deprecated.
|
|
Cluster(Construct scope,
java.lang.String id,
ClusterProps props)
Deprecated.
|
protected |
Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
Cluster(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAutoScalingGroup(AutoScalingGroup autoScalingGroup,
AutoScalingGroupOptions options)
Deprecated.
|
AutoScalingGroup |
addCapacity(java.lang.String id,
CapacityOptions options)
Deprecated.
|
HelmChart |
addChart(java.lang.String id,
HelmChartOptions options)
Deprecated.
|
KubernetesResource |
addResource(java.lang.String id,
java.lang.Object... manifest)
Deprecated.
|
static ICluster |
fromClusterAttributes(Construct scope,
java.lang.String id,
ClusterAttributes attrs)
Deprecated.
|
AwsAuth |
getAwsAuth()
Deprecated.
|
java.lang.String |
getClusterArn()
Deprecated.
|
java.lang.String |
getClusterCertificateAuthorityData()
Deprecated.
|
java.lang.String |
getClusterEndpoint()
Deprecated.
|
java.lang.String |
getClusterName()
Deprecated.
|
Connections |
getConnections()
Deprecated.
|
AutoScalingGroup |
getDefaultCapacity()
Deprecated.
|
java.lang.Boolean |
getKubectlEnabled()
Deprecated.
|
IRole |
getRole()
Deprecated.
|
IVpc |
getVpc()
Deprecated.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected Cluster(software.amazon.jsii.JsiiObjectRef objRef)
protected Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Deprecated public Cluster(Construct scope, java.lang.String id, ClusterProps props)
scope
- a Construct, most likely a cdk.Stack created. This parameter is required.id
- This parameter is required.props
- properties in the IClusterProps interface.@Deprecated public Cluster(Construct scope, java.lang.String id)
scope
- a Construct, most likely a cdk.Stack created. This parameter is required.id
- This parameter is required.@Deprecated public static ICluster fromClusterAttributes(Construct scope, java.lang.String id, ClusterAttributes attrs)
scope
- the construct scope, in most cases 'this'. This parameter is required.id
- the id or name to import as. This parameter is required.attrs
- the cluster properties to use for importing information. This parameter is required.@Deprecated public void addAutoScalingGroup(AutoScalingGroup autoScalingGroup, AutoScalingGroupOptions options)
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=Ec2Spot
and tainted with PreferNoSchedule
.
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 addCapacity
if possible.
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.https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html
@Deprecated public AutoScalingGroup addCapacity(java.lang.String id, CapacityOptions options)
The nodes will automatically be configured with the right VPC and AMI for the instance type and Kubernetes version.
Spot instances will be labeled lifecycle=Ec2Spot
and tainted with PreferNoSchedule
.
If kubectl is enabled, the
spot interrupt handler
daemon will be installed on all spot instances to handle
EC2 Spot Instance Termination Notices.
id
- This parameter is required.options
- This parameter is required.@Deprecated public HelmChart addChart(java.lang.String id, HelmChartOptions options)
id
- logical id of this chart. This parameter is required.options
- options of this chart. This parameter is required.@Deprecated public KubernetesResource addResource(java.lang.String id, java.lang.Object... manifest)
The manifest will be applied/deleted using kubectl as needed.
id
- logical id of this manifest. This parameter is required.manifest
- a list of Kubernetes resource specifications. This parameter is required.@Deprecated public AwsAuth getAwsAuth()
@Deprecated public java.lang.String getClusterArn()
For example, arn:aws:eks:us-west-2:666666666666:cluster/prod
getClusterArn
in interface ICluster
@Deprecated public java.lang.String getClusterCertificateAuthorityData()
getClusterCertificateAuthorityData
in interface ICluster
@Deprecated public java.lang.String getClusterEndpoint()
This is the URL inside the kubeconfig file to use with kubectl
For example, https://5E1D0CEXAMPLEA591B746AFC5AB30262.yl4.us-west-2.eks.amazonaws.com
getClusterEndpoint
in interface ICluster
@Deprecated public java.lang.String getClusterName()
getClusterName
in interface ICluster
@Deprecated public Connections getConnections()
getConnections
in interface IConnectable
@Deprecated public java.lang.Boolean getKubectlEnabled()
@Deprecated public IRole getRole()
@Deprecated public IVpc getVpc()
@Deprecated public AutoScalingGroup getDefaultCapacity()
This will be undefined
if the default capacity is set to 0.