BootstrapOptions

class aws_cdk.aws_eks.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

(experimental) EKS node bootstrapping options.

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

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

  • docker_config_json (Optional[str]) – (experimental) 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]) – (experimental) Restores the docker default bridge network. Default: false

  • kubelet_extra_args (Optional[str]) – (experimental) Extra arguments to add to the kubelet. Useful for adding labels or taints. Default: - none

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

Stability

experimental

Attributes

additional_args

(experimental) 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

experimental

Return type

Optional[str]

aws_api_retry_attempts

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

Default

3

Stability

experimental

Return type

Union[int, float, None]

docker_config_json

(experimental) 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

experimental

Return type

Optional[str]

enable_docker_bridge

(experimental) Restores the docker default bridge network.

Default

false

Stability

experimental

Return type

Optional[bool]

kubelet_extra_args

(experimental) Extra arguments to add to the kubelet.

Useful for adding labels or taints.

Default
  • none

Stability

experimental

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
--node - labelsfoo = bar , goo = far
Return type

Optional[str]

use_max_pods

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

Default

true

Stability

experimental

Return type

Optional[bool]