@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:30.039Z") @Stability(value=Experimental) public interface BootstrapOptions extends software.amazon.jsii.JsiiSerializable
// up to ten spot instances
Cluster cluster;
cluster.addCapacity("spot", CapacityOptions.builder()
.instanceType(new InstanceType("t3.large"))
.desiredCapacity(2)
.bootstrapOptions(BootstrapOptions.builder()
.kubeletExtraArgs("--node-labels foo=bar,goo=far")
.awsApiRetryAttempts(5)
.build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
BootstrapOptions.Builder
A builder for
BootstrapOptions |
static class |
BootstrapOptions.Jsii$Proxy
An implementation for
BootstrapOptions |
| Modifier and Type | Method and Description |
|---|---|
static BootstrapOptions.Builder |
builder() |
default String |
getAdditionalArgs()
(experimental) Additional command line arguments to pass to the `/etc/eks/bootstrap.sh` command.
|
default Number |
getAwsApiRetryAttempts()
(experimental) Number of retry attempts for AWS API call (DescribeCluster).
|
default String |
getDockerConfigJson()
(experimental) The contents of the `/etc/docker/daemon.json` file.
|
default Boolean |
getEnableDockerBridge()
(experimental) Restores the docker default bridge network.
|
default String |
getKubeletExtraArgs()
(experimental) Extra arguments to add to the kubelet.
|
default Boolean |
getUseMaxPods()
(experimental) Sets `--max-pods` for the kubelet based on the capacity of the EC2 instance.
|
@Stability(value=Experimental) @Nullable default String getAdditionalArgs()
Default: - none
https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh@Stability(value=Experimental) @Nullable default Number getAwsApiRetryAttempts()
Default: 3
@Stability(value=Experimental) @Nullable default String getDockerConfigJson()
Default: - none
@Stability(value=Experimental) @Nullable default Boolean getEnableDockerBridge()
Default: false
@Stability(value=Experimental) @Nullable default String getKubeletExtraArgs()
For example, --node-labels foo=bar,goo=far
Default: - none
@Stability(value=Experimental) @Nullable default Boolean getUseMaxPods()
Default: true
@Stability(value=Experimental) static BootstrapOptions.Builder builder()
BootstrapOptions.Builder of BootstrapOptionsCopyright © 2022. All rights reserved.