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
EKS node bootstrapping options.
- Parameters
additional_args (
Optional
[str
]) – Additional command line arguments to pass to the/etc/eks/bootstrap.sh
command. Default: - noneaws_api_retry_attempts (
Union
[int
,float
,None
]) – Number of retry attempts for AWS API call (DescribeCluster). Default: 3docker_config_json (
Optional
[str
]) – 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: - noneenable_docker_bridge (
Optional
[bool
]) – Restores the docker default bridge network. Default: falsekubelet_extra_args (
Optional
[str
]) – Extra arguments to add to the kubelet. Useful for adding labels or taints. Default: - noneuse_max_pods (
Optional
[bool
]) – Sets--max-pods
for the kubelet based on the capacity of the EC2 instance. Default: true
Attributes
-
additional_args
¶ 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
- Return type
Optional
[str
]
-
aws_api_retry_attempts
¶ Number of retry attempts for AWS API call (DescribeCluster).
- Default
3
- Return type
Union
[int
,float
,None
]
-
docker_config_json
¶ 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
- Return type
Optional
[str
]
-
enable_docker_bridge
¶ Restores the docker default bridge network.
- Default
false
- Return type
Optional
[bool
]
-
kubelet_extra_args
¶ Extra arguments to add to the kubelet.
Useful for adding labels or taints.
- Default
none
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
¶ Sets
--max-pods
for the kubelet based on the capacity of the EC2 instance.- Default
true
- Return type
Optional
[bool
]