interface BootstrapOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.BootstrapOptions |
Java | software.amazon.awscdk.services.eks.BootstrapOptions |
Python | aws_cdk.aws_eks.BootstrapOptions |
TypeScript (source) | @aws-cdk/aws-eks » BootstrapOptions |
EKS node bootstrapping options.
Example
declare const cluster: eks.Cluster;
cluster.addAutoScalingGroupCapacity('spot', {
instanceType: new ec2.InstanceType('t3.large'),
minCapacity: 2,
bootstrapOptions: {
kubeletExtraArgs: '--node-labels foo=bar,goo=far',
awsApiRetryAttempts: 5,
},
});
Properties
Name | Type | Description |
---|---|---|
additional | string | Additional command line arguments to pass to the /etc/eks/bootstrap.sh command. |
aws | number | Number of retry attempts for AWS API call (DescribeCluster). |
dns | string | Overrides the IP address to use for DNS queries within the cluster. |
docker | string | The contents of the /etc/docker/daemon.json file. Useful if you want a custom config differing from the default one in the EKS AMI. |
enable | boolean | Restores the docker default bridge network. |
kubelet | string | Extra arguments to add to the kubelet. Useful for adding labels or taints. |
use | boolean | Sets --max-pods for the kubelet based on the capacity of the EC2 instance. |
additionalArgs?
Type:
string
(optional, default: none)
Additional command line arguments to pass to the /etc/eks/bootstrap.sh
command.
See also: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh
awsApiRetryAttempts?
Type:
number
(optional, default: 3)
Number of retry attempts for AWS API call (DescribeCluster).
dnsClusterIp?
Type:
string
(optional, default: 10.100.0.10 or 172.20.0.10 based on the IP
address of the primary interface.)
Overrides the IP address to use for DNS queries within the cluster.
dockerConfigJson?
Type:
string
(optional, default: none)
The contents of the /etc/docker/daemon.json
file. Useful if you want a custom config differing from the default one in the EKS AMI.
enableDockerBridge?
Type:
boolean
(optional, default: false)
Restores the docker default bridge network.
kubeletExtraArgs?
Type:
string
(optional, default: none)
Extra arguments to add to the kubelet. Useful for adding labels or taints.
For example, --node-labels foo=bar,goo=far
.
useMaxPods?
Type:
boolean
(optional, default: true)
Sets --max-pods
for the kubelet based on the capacity of the EC2 instance.