BootstrapOptions

class aws_cdk.aws_eks_legacy.BootstrapOptions(*, additional_args=None, aws_api_retry_attempts=None, docker_config_json=None, enable_docker_bridge=None, kubelet_extra_args=None, use_max_pods=None)

Bases: object

Parameters:
  • additional_args (Optional[str]) – (deprecated) Additional command line arguments to pass to the /etc/eks/bootstrap.sh command. Default: - none

  • aws_api_retry_attempts (Union[int, float, None]) – (deprecated) Number of retry attempts for AWS API call (DescribeCluster). Default: 3

  • docker_config_json (Optional[str]) – (deprecated) 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. Default: - none

  • enable_docker_bridge (Optional[bool]) – (deprecated) Restores the docker default bridge network. Default: false

  • kubelet_extra_args (Optional[str]) – (deprecated) Extra arguments to add to the kubelet. Useful for adding labels or taints. For example, --node-labels foo=bar,goo=far Default: - none

  • use_max_pods (Optional[bool]) – (deprecated) Sets --max-pods for the kubelet based on the capacity of the EC2 instance. Default: true

Stability:

deprecated

ExampleMetadata:

infused

Example:

# up to ten spot instances
# cluster: eks.Cluster

cluster.add_capacity("spot",
    instance_type=ec2.InstanceType("t3.large"),
    desired_capacity=2,
    bootstrap_options=eks.BootstrapOptions(
        kubelet_extra_args="--node-labels foo=bar,goo=far",
        aws_api_retry_attempts=5
    )
)

Attributes

additional_args

(deprecated) Additional command line arguments to pass to the /etc/eks/bootstrap.sh command.

Default:
  • none

See:

https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh

Stability:

deprecated

aws_api_retry_attempts

(deprecated) Number of retry attempts for AWS API call (DescribeCluster).

Default:

3

Stability:

deprecated

docker_config_json

(deprecated) 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.

Default:
  • none

Stability:

deprecated

enable_docker_bridge

(deprecated) Restores the docker default bridge network.

Default:

false

Stability:

deprecated

kubelet_extra_args

(deprecated) Extra arguments to add to the kubelet. Useful for adding labels or taints.

For example, --node-labels foo=bar,goo=far

Default:
  • none

Stability:

deprecated

use_max_pods

(deprecated) Sets --max-pods for the kubelet based on the capacity of the EC2 instance.

Default:

true

Stability:

deprecated