BootstrapOptions Struct
EKS node bootstrapping options.
| Source | aws-eks-v2/lib/cluster.ts |
|---|---|
| Type last changed |
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,
};
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
// 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();
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
};
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
additionalArgsoptionalstringadditional_argsoptionalstradditionalArgsoptionalStringAdditionalArgsoptionalstringAdditionalArgsoptional*string = none #Additional command line arguments to pass to the `/etc/eks/bootstrap.sh` command.
awsApiRetryAttemptsoptionalnumberaws_api_retry_attemptsoptionalint | floatawsApiRetryAttemptsoptionalNumberAwsApiRetryAttemptsoptionaldoubleAwsApiRetryAttemptsoptional*float64 = 3 #Number of retry attempts for AWS API call (DescribeCluster).
dnsClusterIpoptionalstringdns_cluster_ipoptionalstrdnsClusterIpoptionalStringDnsClusterIpoptionalstringDnsClusterIpoptional*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.
dockerConfigJsonoptionalstringdocker_config_jsonoptionalstrdockerConfigJsonoptionalStringDockerConfigJsonoptionalstringDockerConfigJsonoptional*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.
enableDockerBridgeoptionalbooleanenable_docker_bridgeoptionalboolenableDockerBridgeoptionalBooleanEnableDockerBridgeoptionalboolEnableDockerBridgeoptional*bool = false #Restores the docker default bridge network.
kubeletExtraArgsoptionalstringkubelet_extra_argsoptionalstrkubeletExtraArgsoptionalStringKubeletExtraArgsoptionalstringKubeletExtraArgsoptional*string = none #Extra arguments to add to the kubelet. Useful for adding labels or taints.
For example, --node-labels foo=bar,goo=far.
useMaxPodsoptionalbooleanuse_max_podsoptionalbooluseMaxPodsoptionalBooleanUseMaxPodsoptionalboolUseMaxPodsoptional*bool = true #Sets `--max-pods` for the kubelet based on the capacity of the EC2 instance.