-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
feat: Add instance store volume option for instances with local disk #1213
feat: Add instance store volume option for instances with local disk #1213
Conversation
This patch doesn't seem to have any effect for me. It still insists on creating an EBS volume using the default values. I think because there is a non-dynamic terraform-aws-eks/workers_launch_template.tf Line 372 in 50da792
|
@rossigee The additional non-dynamic To make sure I fully understand the issue, are you saying that this patch does not work because it does not change the existing behavior of creating the EKS worker node root volumes as EBS volumes? If that is the case, this patch is not intended to modify that behavior. As you correctly noted, that non-dynamic block does indeed limit this module to creating EKS clusters which use EBS volumes as their root disk. In the case that this is just a configuration issue, here is an example of my worker-group config relevant section:
|
I would like to see the possibility to change the bootstrap (similar to eksctl preBootstrapCommands) and mount and format instance storage when the pod is provisioned, so thus I can use it in Spark on Kubernetes:
Or is there any other workaround how to provide these instance volumes to pods? |
@jwitko Thank you for opening this PR. Can you please rebase your branch from master ? |
No problem! Should be done now. |
Thanks @jwitko for your contribution. |
spot_price = "" # Cost of spot instance. | ||
placement_tenancy = "" # The tenancy of the instance. Valid values are "default" or "dedicated". | ||
root_volume_size = "100" # root volume size of workers instances. | ||
root_volume_type = "gp3" # root volume type of workers instances, can be "standard", "gp3", "gp2", or "io1" |
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.
was this change intended?
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.
Nope #1404
Good catch.
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.
pushing a patch release.
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.
Just released v17.0.1.
Thank you very much @james-callahan
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.
ahhh! So sorry about that @barryib @james-callahan
That was intended for my local fork only, apologies for missing reverting it.
I'm trying to configure something similar, is there a way to do that with this module? |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Issue
Resolves #1212
Description
You can only supply EBS type volumes in worker launch templates. This PR aims to add the ability to also specify instance store volumes so that instances with local disk may be utilized efficiently.
The README did not need to be modified because it references
local.tf
where this change happens, but I did modify that section along with comments as seems to be the pattern. There are two values being added (Hard to see because ofterraform fmt
)additional_instance_store_volumes
instance_store_virtual_name
Diff output without terraform fmt
Checklist