OutpostConfigProperty Struct
The configuration of your local Amazon EKS cluster on an AWS Outpost.
Before creating a cluster on an Outpost, review Creating a local cluster on an Outpost in the Amazon EKS User Guide . This API isn't available for Amazon EKS clusters on the AWS cloud.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const outpostConfigProperty: eks.CfnCluster.OutpostConfigProperty = {
controlPlaneInstanceType: 'controlPlaneInstanceType',
outpostArns: ['outpostArns'],
// the properties below are optional
controlPlanePlacement: {
groupName: 'groupName',
spreadLevel: 'spreadLevel',
},
etcdInstanceType: 'etcdInstanceType',
etcdPlacement: {
spreadLevel: 'spreadLevel',
},
};
# 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 as eks
outpost_config_property = eks.CfnCluster.OutpostConfigProperty(
control_plane_instance_type="controlPlaneInstanceType",
outpost_arns=["outpostArns"],
# the properties below are optional
control_plane_placement=eks.CfnCluster.ControlPlanePlacementProperty(
group_name="groupName",
spread_level="spreadLevel"
),
etcd_instance_type="etcdInstanceType",
etcd_placement=eks.CfnCluster.EtcdPlacementProperty(
spread_level="spreadLevel"
)
)
// 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.*;
OutpostConfigProperty outpostConfigProperty = OutpostConfigProperty.builder()
.controlPlaneInstanceType("controlPlaneInstanceType")
.outpostArns(List.of("outpostArns"))
// the properties below are optional
.controlPlanePlacement(ControlPlanePlacementProperty.builder()
.groupName("groupName")
.spreadLevel("spreadLevel")
.build())
.etcdInstanceType("etcdInstanceType")
.etcdPlacement(EtcdPlacementProperty.builder()
.spreadLevel("spreadLevel")
.build())
.build();
// 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.EKS;
var outpostConfigProperty = new OutpostConfigProperty {
ControlPlaneInstanceType = "controlPlaneInstanceType",
OutpostArns = new [] { "outpostArns" },
// the properties below are optional
ControlPlanePlacement = new ControlPlanePlacementProperty {
GroupName = "groupName",
SpreadLevel = "spreadLevel"
},
EtcdInstanceType = "etcdInstanceType",
EtcdPlacement = new EtcdPlacementProperty {
SpreadLevel = "spreadLevel"
}
};
// 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"
outpostConfigProperty := &OutpostConfigProperty{
ControlPlaneInstanceType: jsii.String("controlPlaneInstanceType"),
OutpostArns: []*string{
jsii.String("outpostArns"),
},
// the properties below are optional
ControlPlanePlacement: &ControlPlanePlacementProperty{
GroupName: jsii.String("groupName"),
SpreadLevel: jsii.String("spreadLevel"),
},
EtcdInstanceType: jsii.String("etcdInstanceType"),
EtcdPlacement: &EtcdPlacementProperty{
SpreadLevel: jsii.String("spreadLevel"),
},
}
Properties
controlPlaneInstanceTypestringcontrol_plane_instance_typestrcontrolPlaneInstanceTypeStringControlPlaneInstanceTypestringControlPlaneInstanceType*stringrequired#notes
Choose an instance type based on the number of nodes that your cluster will have. For more information, see Capacity considerations in the Amazon EKS User Guide .
The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. The control plane is not automatically scaled by Amazon EKS.
controlPlanePlacementoptionalIResolvable | CfnCluster.ControlPlanePlacementPropertycontrol_plane_placementoptionaltyping.Union[IResolvable, ControlPlanePlacementProperty]controlPlanePlacementoptionalIResolvableControlPlanePlacementoptionalIResolvableControlPlanePlacementoptionalinterface{}#For more information, see Capacity considerations in the Amazon EKS User Guide .
etcdInstanceTypeoptionalstringetcd_instance_typeoptionalstretcdInstanceTypeoptionalStringEtcdInstanceTypeoptionalstringEtcdInstanceTypeoptional*string#This instance type applies to all etcd instances and cannot be changed after cluster creation.
etcdPlacementoptionalIResolvable | CfnCluster.EtcdPlacementPropertyetcd_placementoptionaltyping.Union[IResolvable, EtcdPlacementProperty]etcdPlacementoptionalIResolvableEtcdPlacementoptionalIResolvableEtcdPlacementoptionalinterface{}#outpostArnsstring[]outpost_arnstyping.List[str]outpostArnsList<String>OutpostArnsstring[]OutpostArns*[]*stringrequired#Only a single Outpost ARN is supported.