Class BootstrapOptions.Builder
java.lang.Object
software.amazon.awscdk.services.eks.legacy.BootstrapOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BootstrapOptions>
- Enclosing interface:
- BootstrapOptions
@Stability(Deprecated)
@Deprecated
public static final class BootstrapOptions.Builder
extends Object
implements software.amazon.jsii.Builder<BootstrapOptions>
Deprecated.
A builder for
BootstrapOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalArgs
(String additionalArgs) Deprecated.awsApiRetryAttempts
(Number awsApiRetryAttempts) Deprecated.build()
Deprecated.dockerConfigJson
(String dockerConfigJson) Deprecated.enableDockerBridge
(Boolean enableDockerBridge) Deprecated.kubeletExtraArgs
(String kubeletExtraArgs) Deprecated.useMaxPods
(Boolean useMaxPods) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
additionalArgs
@Stability(Deprecated) @Deprecated public BootstrapOptions.Builder additionalArgs(String additionalArgs) Deprecated.Sets the value ofBootstrapOptions.getAdditionalArgs()
- Parameters:
additionalArgs
- Additional command line arguments to pass to the/etc/eks/bootstrap.sh
command.- Returns:
this
-
awsApiRetryAttempts
@Stability(Deprecated) @Deprecated public BootstrapOptions.Builder awsApiRetryAttempts(Number awsApiRetryAttempts) Deprecated.Sets the value ofBootstrapOptions.getAwsApiRetryAttempts()
- Parameters:
awsApiRetryAttempts
- Number of retry attempts for AWS API call (DescribeCluster).- Returns:
this
-
dockerConfigJson
@Stability(Deprecated) @Deprecated public BootstrapOptions.Builder dockerConfigJson(String dockerConfigJson) Deprecated.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
@Stability(Deprecated) @Deprecated public BootstrapOptions.Builder enableDockerBridge(Boolean enableDockerBridge) Deprecated.Sets the value ofBootstrapOptions.getEnableDockerBridge()
- Parameters:
enableDockerBridge
- Restores the docker default bridge network.- Returns:
this
-
kubeletExtraArgs
@Stability(Deprecated) @Deprecated public BootstrapOptions.Builder kubeletExtraArgs(String kubeletExtraArgs) Deprecated.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
Deprecated.Sets the value ofBootstrapOptions.getUseMaxPods()
- Parameters:
useMaxPods
- Sets--max-pods
for the kubelet based on the capacity of the EC2 instance.- Returns:
this
-
build
Deprecated.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
-