Class BootstrapOptions
EKS node bootstrapping options.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BootstrapOptions : Object, IBootstrapOptions
Syntax (vb)
Public Class BootstrapOptions
Inherits Object
Implements IBootstrapOptions
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
cluster.AddAutoScalingGroupCapacity("spot", new AutoScalingGroupCapacityOptions {
InstanceType = new InstanceType("t3.large"),
MinCapacity = 2,
BootstrapOptions = new BootstrapOptions {
KubeletExtraArgs = "--node-labels foo=bar,goo=far",
AwsApiRetryAttempts = 5
}
});
Synopsis
Constructors
Bootstrap |
Properties
Additional |
Additional command line arguments to pass to the |
Aws |
Number of retry attempts for AWS API call (DescribeCluster). |
Dns |
Overrides the IP address to use for DNS queries within the cluster. |
Docker |
The contents of the |
Enable |
Restores the docker default bridge network. |
Kubelet |
Extra arguments to add to the kubelet. Useful for adding labels or taints. |
Use |
Sets |
Constructors
BootstrapOptions()
public BootstrapOptions()
Properties
AdditionalArgs
Additional command line arguments to pass to the /etc/eks/bootstrap.sh
command.
public string AdditionalArgs { get; set; }
Property Value
System.
Remarks
Default: - none
See: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh
AwsApiRetryAttempts
Number of retry attempts for AWS API call (DescribeCluster).
public Nullable<double> AwsApiRetryAttempts { get; set; }
Property Value
System.
Remarks
Default: 3
DnsClusterIp
Overrides the IP address to use for DNS queries within the cluster.
public string DnsClusterIp { get; set; }
Property Value
System.
Remarks
Default: - 10.100.0.10 or 172.20.0.10 based on the IP address of the primary interface.
DockerConfigJson
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.
public string DockerConfigJson { get; set; }
Property Value
System.
Remarks
Default: - none
EnableDockerBridge
Restores the docker default bridge network.
public Nullable<bool> EnableDockerBridge { get; set; }
Property Value
System.
Remarks
Default: false
KubeletExtraArgs
Extra arguments to add to the kubelet. Useful for adding labels or taints.
public string KubeletExtraArgs { get; set; }
Property Value
System.
Remarks
For example, --node-labels foo=bar,goo=far
.
Default: - none
UseMaxPods
Sets --max-pods
for the kubelet based on the capacity of the EC2 instance.
public Nullable<bool> UseMaxPods { get; set; }
Property Value
System.
Remarks
Default: true