Skip to content

Commit

Permalink
Add p4d.24xlarge instance type
Browse files Browse the repository at this point in the history
  • Loading branch information
Claes Mogren committed Oct 1, 2020
1 parent 591c44b commit a4a387a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions misc/eni-max-pods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# This file was generated at 2020-09-15T18:15:46-07:00
# This file was generated at 2020-09-30T15:27:32-07:00
#
# Mapping is calculated from AWS EC2 API using the following formula:
# * First IP on each ENI is not used for pods
# * +2 for for the pods that use host-networking (AWS CNI and kube-proxy)
# * +2 for the pods that use host-networking (AWS CNI and kube-proxy)
#
# # of ENI * (# of IPv4 per ENI - 1) + 2
#
Expand Down Expand Up @@ -242,6 +242,7 @@ p3.16xlarge 234
p3.2xlarge 58
p3.8xlarge 234
p3dn.24xlarge 737
p4d.24xlarge 2942
r3.2xlarge 58
r3.4xlarge 234
r3.8xlarge 234
Expand Down
3 changes: 2 additions & 1 deletion pkg/awsutils/vpc_ip_resource_limit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/gen_vpc_ip_limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func addManualLimits(limitMap map[string]awsutils.InstanceTypeLimits) map[string
"u-9tb1.metal": {ENILimit: 5, IPv4Limit: 30},
"c5a.metal": {ENILimit: 15, IPv4Limit: 50},
"c5ad.metal": {ENILimit: 15, IPv4Limit: 50},
"p4d.24xlarge": {ENILimit: 60, IPv4Limit: 50},
}
for instanceType, instanceLimits := range manuallyAddedLimits {
val, ok := limitMap[instanceType]
Expand Down

1 comment on commit a4a387a

@srini-ram
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.