-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add tool to generate instance type docs #1946
Conversation
✅ Deploy Preview for karpenter-docs-prod ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
7a3d4f9
to
5a107ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE! just one comment
fmt.Fprintln(f, "<!-- this document is generated from hack/docs/instancetypes_gen_docs.go -->") | ||
fmt.Fprintln(f, `AWS instance types offer varying resources and can be selected by labels. In particular the | ||
ephemeral-storage is the default value for an AL2 family assuming no specific block device mappings have been configured.`) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth calling out the the resources have overhead taken out. Although it looks like ephemeral storage does not and maybe not CPU either? https://github.com/aws/karpenter/blob/205c4db5743f1f6824253e92304a5df2f875c90c/pkg/cloudprovider/aws/amifamily/al2.go#L94
Might also be worth calling out that pods are assuming the aws-eni-limited-pod-density = true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM. Good catch on overhead! I calculated the value with overhead subtracted and then ignored it 😆
Displays both labels and the resources that we use for bin-packing after overhead calculations.
5a107ac
to
a5df3d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Big improvement! to docs!
Fixes # 1329
Description
Displays both labels and the resources that we use for bin-packing after overhead calculations.
How was this change tested?
Does this change impact docs?
Release Note
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.