# BootstrapOptions

EKS node bootstrapping options.

- Source: [`aws-eks/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks/lib/cluster.ts#L2631)

## Example

```ts
declare const cluster: eks.Cluster;
cluster.addAutoScalingGroupCapacity('spot', {
  instanceType: new ec2.InstanceType('t3.large'),
  minCapacity: 2,
  bootstrapOptions: {
    kubeletExtraArgs: '--node-labels foo=bar,goo=far',
    awsApiRetryAttempts: 5,
  },
});
```

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