terraform-kubestack icon indicating copy to clipboard operation
terraform-kubestack copied to clipboard

EKS: EC2 volume type

Open cbek opened this issue 2 years ago • 3 comments

We are looking for the option to define a specific attribute for EC2 volume type.

cbek avatar Aug 26 '21 16:08 cbek

Can you provide more context? I unfortunately don't understand what you're asking for.

pst avatar Sep 07 '21 09:09 pst

Status: At the moment a worker node of a AWS EKS cluster runs with the volume_type 'gp2'

Terraform aws_instance resources provides options to configure a root_block_device: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#ebs-ephemeral-and-root-block-devices

Goal: As a Kubestack end-user I would like to have the option to configure the worker node root_block_device with the following options:

  • volume_type
  • iops

cbek avatar Sep 07 '21 10:09 cbek

The nodes are created using the aws_eks_node_group ressource. I believe the corresponding attribute for the launch_template used for the aws_eks_node_group would be this: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#block-devices

However, that's not currently exposed yet by Kubestack's EKS node_pool module.

pst avatar Sep 07 '21 10:09 pst