Class BootstrapOptions.Builder
java.lang.Object
software.amazon.awscdk.services.eks.BootstrapOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BootstrapOptions>
- Enclosing interface:
BootstrapOptions
@Stability(Stable)
public static final class BootstrapOptions.Builder
extends Object
implements software.amazon.jsii.Builder<BootstrapOptions>
A builder for
BootstrapOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalArgs
(String additionalArgs) Sets the value ofBootstrapOptions.getAdditionalArgs()
awsApiRetryAttempts
(Number awsApiRetryAttempts) Sets the value ofBootstrapOptions.getAwsApiRetryAttempts()
build()
Builds the configured instance.dnsClusterIp
(String dnsClusterIp) Sets the value ofBootstrapOptions.getDnsClusterIp()
dockerConfigJson
(String dockerConfigJson) Sets the value ofBootstrapOptions.getDockerConfigJson()
enableDockerBridge
(Boolean enableDockerBridge) Sets the value ofBootstrapOptions.getEnableDockerBridge()
kubeletExtraArgs
(String kubeletExtraArgs) Sets the value ofBootstrapOptions.getKubeletExtraArgs()
useMaxPods
(Boolean useMaxPods) Sets the value ofBootstrapOptions.getUseMaxPods()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalArgs
Sets the value ofBootstrapOptions.getAdditionalArgs()
- Parameters:
additionalArgs
- Additional command line arguments to pass to the/etc/eks/bootstrap.sh
command.- Returns:
this
-
awsApiRetryAttempts
Sets the value ofBootstrapOptions.getAwsApiRetryAttempts()
- Parameters:
awsApiRetryAttempts
- Number of retry attempts for AWS API call (DescribeCluster).- Returns:
this
-
dnsClusterIp
Sets the value ofBootstrapOptions.getDnsClusterIp()
- Parameters:
dnsClusterIp
- Overrides the IP address to use for DNS queries within the cluster.- Returns:
this
-
dockerConfigJson
Sets the value ofBootstrapOptions.getDockerConfigJson()
- Parameters:
dockerConfigJson
- 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.- Returns:
this
-
enableDockerBridge
Sets the value ofBootstrapOptions.getEnableDockerBridge()
- Parameters:
enableDockerBridge
- Restores the docker default bridge network.- Returns:
this
-
kubeletExtraArgs
Sets the value ofBootstrapOptions.getKubeletExtraArgs()
- Parameters:
kubeletExtraArgs
- Extra arguments to add to the kubelet. Useful for adding labels or taints. For example,--node-labels foo=bar,goo=far
.- Returns:
this
-
useMaxPods
Sets the value ofBootstrapOptions.getUseMaxPods()
- Parameters:
useMaxPods
- Sets--max-pods
for the kubelet based on the capacity of the EC2 instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BootstrapOptions>
- Returns:
- a new instance of
BootstrapOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-