Skip to content

Commit

Permalink
docs: update instance type generation for AL2023 (#6231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed May 18, 2024
1 parent c980c0c commit d219559
Show file tree
Hide file tree
Showing 6 changed files with 473 additions and 84 deletions.
4 changes: 2 additions & 2 deletions hack/docs/instancetypes_gen_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func main() {
// Fake a NodeClass so we can use it to get InstanceTypes
nodeClass := &v1beta1.EC2NodeClass{
Spec: v1beta1.EC2NodeClassSpec{
AMIFamily: &v1beta1.AMIFamilyAL2023,
SubnetSelectorTerms: []v1beta1.SubnetSelectorTerm{
{
Tags: map[string]string{
Expand Down Expand Up @@ -149,8 +150,7 @@ description: >
fmt.Fprintln(f, `AWS instance types offer varying resources and can be selected by labels. The values provided
below are the resources available with some assumptions and after the instance overhead has been subtracted:
- `+"`blockDeviceMappings` are not configured"+`
- `+"`aws-eni-limited-pod-density` is assumed to be `true`"+`
- `+"`amiFamily` is set to the default of `AL2`")
- `+"`amiFamily` is set to `AL2023`")

// generate a map of family -> instance types along with some other sorted lists. The sorted lists ensure we
// generate consistent docs every run.
Expand Down
43 changes: 21 additions & 22 deletions website/content/en/docs/reference/instance-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ description: >
AWS instance types offer varying resources and can be selected by labels. The values provided
below are the resources available with some assumptions and after the instance overhead has been subtracted:
- `blockDeviceMappings` are not configured
- `aws-eni-limited-pod-density` is assumed to be `true`
- `amiFamily` is set to the default of `AL2`
- `amiFamily` is set to `AL2023`
## a1 Family
### `a1.medium`
#### Labels
Expand Down Expand Up @@ -3174,8 +3173,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|238333Mi|
|pods|345|
|memory|237794Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
### `c6in.metal`
Expand All @@ -3200,8 +3199,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|238333Mi|
|pods|345|
|memory|237794Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
## c7a Family
Expand Down Expand Up @@ -11192,8 +11191,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|480816Mi|
|pods|345|
|memory|480277Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
### `m6idn.metal`
Expand All @@ -11219,8 +11218,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|480816Mi|
|pods|345|
|memory|480277Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
## m6in Family
Expand Down Expand Up @@ -11446,8 +11445,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|480816Mi|
|pods|345|
|memory|480277Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
### `m6in.metal`
Expand All @@ -11472,8 +11471,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|480816Mi|
|pods|345|
|memory|480277Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
## m7a Family
Expand Down Expand Up @@ -16231,8 +16230,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|965782Mi|
|pods|345|
|memory|965243Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
### `r6idn.metal`
Expand All @@ -16258,8 +16257,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|965782Mi|
|pods|345|
|memory|965243Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
## r6in Family
Expand Down Expand Up @@ -16485,8 +16484,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|965782Mi|
|pods|345|
|memory|965243Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
### `r6in.metal`
Expand All @@ -16511,8 +16510,8 @@ below are the resources available with some assumptions and after the instance o
|--|--|
|cpu|127610m|
|ephemeral-storage|17Gi|
|memory|965782Mi|
|pods|345|
|memory|965243Mi|
|pods|394|
|vpc.amazonaws.com/efa|2|
|vpc.amazonaws.com/pod-eni|108|
## r7a Family
Expand Down

0 comments on commit d219559

Please sign in to comment.