interface BootstrapOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Eks.V2.Alpha.BootstrapOptions |
![]() | github.com/aws/aws-cdk-go/awscdkeks-v2alpha/v2#BootstrapOptions |
![]() | software.amazon.awscdk.services.eks.v2.alpha.BootstrapOptions |
![]() | aws_cdk.aws_eks_v2_alpha.BootstrapOptions |
![]() | @aws-cdk/aws-eks-v2-alpha » BootstrapOptions |
EKS node bootstrapping options.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as eks_v2_alpha from '@aws-cdk/aws-eks-v2-alpha';
const bootstrapOptions: eks_v2_alpha.BootstrapOptions = {
additionalArgs: 'additionalArgs',
awsApiRetryAttempts: 123,
dnsClusterIp: 'dnsClusterIp',
dockerConfigJson: 'dockerConfigJson',
enableDockerBridge: false,
kubeletExtraArgs: 'kubeletExtraArgs',
useMaxPods: false,
};
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.