Skip to content
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

Adds some basic validation to encourage running 5th gen instances on stretch #5653

Closed
wants to merge 2 commits into from

Conversation

geojaz
Copy link
Member

@geojaz geojaz commented Aug 17, 2018

Ie: won't let you launch an m5.large with kope.io/k8s-1.10-debian-jessie-* Should close #5175, #5520

Consider this a first step towards more intelligent image type validation. it's just to give me context when things go wrong at this point.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 17, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geojaz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 17, 2018
Copy link
Contributor

@mikesplain mikesplain left a comment

Choose a reason for hiding this comment

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

This looks great! Simple but great start!


// TODO: make image validation smarter? graduate from jessie to stretch? This is quick and dirty because we keep getting reports
func awsValidateAMIforNVMe(fieldPath *field.Path, ig *kops.InstanceGroup) field.ErrorList {
NVMe_INSTANCE_PREFIXES := []string{"P3", "C5", "M5", "H1"}
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe i3’s are also NVME

https://aws.amazon.com/ec2/instance-types/i3/

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't mean to push this to kubernetes org :/ will fix this point and reopen. Any ideas for a better place to list these types of instances? this is already hard to maintain. I am not aware of any other lists of instances that have this type of metadata hanging around. Would adding something like that to the machinetypes list be better?

I hope this is a validation that we do not need to do for too much longer.

Copy link
Contributor

Choose a reason for hiding this comment

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

@geojaz Agreed. We certainly could have a NVME flag in machinetypes, just like we do for gpu? That said, hopefully we don't need it much longer, it may not be worth implementing there

Copy link
Member Author

@geojaz geojaz Aug 17, 2018

Choose a reason for hiding this comment

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

yeah, I punted on getting this into 1.10, and the next day I had two colleagues come to me with this exact problem. people are definitely running into it, so i think having at least something to explain why things are going wrong is beneficial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instances not using all space from the root volume
3 participants