interface BootstrapOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.Legacy.BootstrapOptions |
Java | software.amazon.awscdk.services.eks.legacy.BootstrapOptions |
Python | aws_cdk.aws_eks_legacy.BootstrapOptions |
TypeScript (source) | @aws-cdk/aws-eks-legacy » BootstrapOptions |
⚠️ Deprecated: undefined
Example
// up to ten spot instances
declare const cluster: eks.Cluster;
cluster.addCapacity('spot', {
instanceType: new ec2.InstanceType('t3.large'),
desiredCapacity: 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). |
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?
⚠️ Deprecated: undefined
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?
⚠️ Deprecated: undefined
Type:
number
(optional, default: 3)
Number of retry attempts for AWS API call (DescribeCluster).
dockerConfigJson?
⚠️ Deprecated: undefined
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?
⚠️ Deprecated: undefined
Type:
boolean
(optional, default: false)
Restores the docker default bridge network.
kubeletExtraArgs?
⚠️ Deprecated: undefined
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?
⚠️ Deprecated: undefined
Type:
boolean
(optional, default: true)
Sets --max-pods
for the kubelet based on the capacity of the EC2 instance.