-
Notifications
You must be signed in to change notification settings - Fork 1.5k
data/aws: Explicitly set ebs_optimized true #847
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
Conversation
I'd have expected this to be the default for instance types where
EBS-optimized is the default (like m4.large [1]). But apparently not:
$ AWS_PROFILE=ci aws ec2 describe-instances --instance-ids i-076622e249b75a673 --query 'Reservations[0].Instances[0].{InstanceType: InstanceType, EbsOptimized: EbsOptimized}' --output json
{
"EbsOptimized": false,
"InstanceType": "m4.large"
}
Docs for the Terraform property are in [2].
[1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html
[2]: https://www.terraform.io/docs/providers/aws/r/instance.html#ebs_optimized
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@wking: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
I am curious whether this is a deficiency in the AWS instance description. From the AWS web console, you are not allowed to un-check the EBS-optimized box when selecting a m4.large instance. What will happen if the instance type passed into the bootstrap or master module is one that does not accept EBS optimization? I don't suppose that those instance types are even relevant any more. |
|
The TF docs explicitly say:
But it can't hurt to set it either. |
Heh, I somehow skimmed over that sentence. And taking another look at the AWS docs:
So I'm closing this to keep the code simple and avoid @staebler's point about supporting instance types that don't do EBS-optimization. |
This is a prep step for folding all mco component images into one mco image. A corresponding mco image flag has been added in the MCO repo via openshift#847 Related-to: openshift/machine-config-operator#739 Related-to: openshift/machine-config-operator#847
I'd have expected this to be the default for instance types where EBS-optimized is the default (like m4.large). But apparently not:
Docs for the Terraform property are here.