CommonClusterOptions¶
-
class
aws_cdk.aws_eks.
CommonClusterOptions
(*, version, cluster_name=None, output_cluster_name=None, output_config_command=None, role=None, security_group=None, vpc=None, vpc_subnets=None)¶ Bases:
object
Options for configuring an EKS cluster.
- Parameters
version (
KubernetesVersion
) – The Kubernetes version to run in the cluster.cluster_name (
Optional
[str
]) – Name for the cluster. Default: - Automatically generated nameoutput_cluster_name (
Optional
[bool
]) – Determines whether a CloudFormation output with the name of the cluster will be synthesized. Default: falseoutput_config_command (
Optional
[bool
]) – Determines whether a CloudFormation output with theaws eks update-kubeconfig
command will be synthesized. This command will include the cluster name and, if applicable, the ARN of the masters IAM role. Default: truerole (
Optional
[IRole
]) – Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. Default: - A role is automatically created for yousecurity_group (
Optional
[ISecurityGroup
]) – Security Group to use for Control Plane ENIs. Default: - A security group is automatically createdvpc (
Optional
[IVpc
]) – The VPC in which to create the Cluster. Default: - a VPC with default configuration will be created and can be accessed throughcluster.vpc
.vpc_subnets (
Optional
[List
[SubnetSelection
]]) – Where to place EKS Control Plane ENIs. If you want to create public load balancers, this must include public subnets. For example, to only select private subnets, supply the following:: vpcSubnets: [ { subnetType: ec2.SubnetType.Private } ] Default: - All public and private subnets
Attributes
-
cluster_name
¶ Name for the cluster.
- Default
Automatically generated name
- Return type
Optional
[str
]
-
output_cluster_name
¶ Determines whether a CloudFormation output with the name of the cluster will be synthesized.
- Default
false
- Return type
Optional
[bool
]
-
output_config_command
¶ Determines whether a CloudFormation output with the
aws eks update-kubeconfig
command will be synthesized.This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
- Default
true
- Return type
Optional
[bool
]
-
role
¶ Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
- Default
A role is automatically created for you
- Return type
Optional
[IRole
]
-
security_group
¶ Security Group to use for Control Plane ENIs.
- Default
A security group is automatically created
- Return type
Optional
[ISecurityGroup
]
-
version
¶ The Kubernetes version to run in the cluster.
- Return type
-
vpc
¶ The VPC in which to create the Cluster.
- Default
a VPC with default configuration will be created and can be accessed through
cluster.vpc
.
- Return type
Optional
[IVpc
]
-
vpc_subnets
¶ Where to place EKS Control Plane ENIs.
If you want to create public load balancers, this must include public subnets.
For example, to only select private subnets, supply the following:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 vpcSubnets: [ { subnetType: ec2.SubnetType.Private } ]
- Default
All public and private subnets
- Return type
Optional
[List
[SubnetSelection
]]