Skip to content

Commit

Permalink
fix: Ensure EBS optimized is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Oct 2, 2024
1 parent a532f4d commit be48f99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion patterns/ml-container-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ When the PyTorch image is not present on the EBS volume, it takes roughly 6 minu

### Cluster

```terraform hl_lines="5-9 48-60 62-74"
```terraform hl_lines="5-9 52-64 66-78"
{% include "../../patterns/ml-container-cache/eks.tf" %}
```

Expand Down
6 changes: 5 additions & 1 deletion patterns/ml-container-cache/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ module "eks" {
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets

eks_managed_node_group_defaults = {
ebs_optimized = true
}

eks_managed_node_groups = {
gpu = {
# The EKS AL2 GPU AMI provides all of the necessary components
Expand Down Expand Up @@ -97,7 +101,7 @@ module "eks" {
desired_size = 2

# Not required - increased to demonstrate pulling the un-cached
# image but the default volume size is too small for the image used
# image since the default volume size is too small for the image used
block_device_mappings = {
"xvda" = {
device_name = "/dev/xvda"
Expand Down

0 comments on commit be48f99

Please sign in to comment.