# BootstrapOptions

EKS node bootstrapping options.

- Source: [`aws-eks-v2/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-eks-v2/lib/cluster.ts#L2189)
- Type last changed: v2.240.0 · 23 Feb 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks_v2 as eks_v2 } from 'aws-cdk-lib';
const bootstrapOptions: eks_v2.BootstrapOptions = {
  additionalArgs: 'additionalArgs',
  awsApiRetryAttempts: 123,
  dnsClusterIp: 'dnsClusterIp',
  dockerConfigJson: 'dockerConfigJson',
  enableDockerBridge: false,
  kubeletExtraArgs: 'kubeletExtraArgs',
  useMaxPods: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks_v2 as eks_v2

bootstrap_options = eks_v2.BootstrapOptions(
    additional_args="additionalArgs",
    aws_api_retry_attempts=123,
    dns_cluster_ip="dnsClusterIp",
    docker_config_json="dockerConfigJson",
    enable_docker_bridge=False,
    kubelet_extra_args="kubeletExtraArgs",
    use_max_pods=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks_v2.*;

BootstrapOptions bootstrapOptions = BootstrapOptions.builder()
        .additionalArgs("additionalArgs")
        .awsApiRetryAttempts(123)
        .dnsClusterIp("dnsClusterIp")
        .dockerConfigJson("dockerConfigJson")
        .enableDockerBridge(false)
        .kubeletExtraArgs("kubeletExtraArgs")
        .useMaxPods(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKSv2;

var bootstrapOptions = new BootstrapOptions {
    AdditionalArgs = "additionalArgs",
    AwsApiRetryAttempts = 123,
    DnsClusterIp = "dnsClusterIp",
    DockerConfigJson = "dockerConfigJson",
    EnableDockerBridge = false,
    KubeletExtraArgs = "kubeletExtraArgs",
    UseMaxPods = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bootstrapOptions := &BootstrapOptions{
	AdditionalArgs: jsii.String("additionalArgs"),
	AwsApiRetryAttempts: jsii.Number(123),
	DnsClusterIp: jsii.String("dnsClusterIp"),
	DockerConfigJson: jsii.String("dockerConfigJson"),
	EnableDockerBridge: jsii.Boolean(false),
	KubeletExtraArgs: jsii.String("kubeletExtraArgs"),
	UseMaxPods: jsii.Boolean(false),
}
```

## Properties

- `additionalArgs`: string = none — Additional command line arguments to pass to the `/etc/eks/bootstrap.sh` command.

- `awsApiRetryAttempts`: number = 3 — Number of retry attempts for AWS API call (DescribeCluster).

- `dnsClusterIp`: string — Overrides the IP address to use for DNS queries within the cluster.

  **Default:** 10.100.0.10 or 172.20.0.10 based on the IP address of the primary interface.

- `dockerConfigJson`: string = none — 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.

- `enableDockerBridge`: boolean = false — Restores the docker default bridge network.

- `kubeletExtraArgs`: string = none — Extra arguments to add to the kubelet. Useful for adding labels or taints.

  For example, `--node-labels foo=bar,goo=far`.

- `useMaxPods`: boolean = true — Sets `--max-pods` for the kubelet based on the capacity of the EC2 instance.
