-
Notifications
You must be signed in to change notification settings - Fork 640
Description
/kind feature
Describe the solution you'd like
After Add support to specify PlacementGroup Name in instances, users can specify pre-created placement group name when running instances, using PlacementGroupName field.
Given that Placement Groups have different placement strategies, Partition strategy allows more precise allocation with a specified Partition Number at the instance level to achieve highest level of availability.
Following that, it is requested to have the ability to specify the PartitionNumber along with PlacementGroupName while creating instances because instances in one partition do not share the underlying hardware with groups of instances in different partitions.
Anything else you would like to add:
Documentations
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
- https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Placement.html
API Proposal
api/v1beta2/types.go
type Instance struct {
...
...
// PlacementGroupName specifies the name of the placement group in which to launch the instance.
// +optional
PlacementGroupName string `json:"placementGroupName,omitempty"`
// PartitionNumber is the partition number within the placement group in which to launch the instance.
// +kubebuilder:validation:Minimum:=1
// +kubebuilder:validation:Maximum:=7
// +optional
PartitionNumber int64 `json:"partitionNumber,omitempty"`
...
...
}