# BootstrapOptions

EKS node bootstrapping options.

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

## Example

```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,
};
```

## 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.
