Skip to content

Commit

Permalink
feat: add option to change volume type and size for launch templates
Browse files Browse the repository at this point in the history
Signed-off-by: ankitm123 <[email protected]>
  • Loading branch information
ankitm123 authored and rawlingsj committed Oct 8, 2021
1 parent e5d3da2 commit e89ce6c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
18 changes: 11 additions & 7 deletions examples/jx3/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ provider "aws" {


module "eks-jx" {
source = "../../"
vault_user = var.vault_user
is_jx2 = false
install_kuberhealthy = true
create_nginx = true
cluster_version = "1.21"
nginx_chart_version = "3.12.0"
source = "../../"
vault_user = var.vault_user
is_jx2 = false
install_kuberhealthy = true
create_nginx = true
cluster_version = "1.21"
nginx_chart_version = "3.12.0"
enable_worker_groups_launch_template = true
volume_type = "gp3"
volume_size = "100"
encrypt_volume_self = true
}
2 changes: 2 additions & 0 deletions modules/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ module "eks" {
asg_max_size = var.lt_max_nodes_per_subnet
spot_price = (var.enable_spot_instances ? var.spot_price : null)
instance_type = var.node_machine_type
root_volume_type = var.volume_type
root_volume_size = var.volume_size
root_encrypted = var.encrypt_volume_self
override_instance_types = var.allowed_spot_instance_types
autoscaling_enabled = "true"
Expand Down
2 changes: 1 addition & 1 deletion modules/cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ variable "lt_max_nodes_per_subnet" {

variable "jx_git_operator_values" {
description = "Extra values for jx-git-operator chart as a list of yaml formated strings"
type = list(string)
type = list(string)
default = []
}

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ variable "registry" {

variable "jx_git_operator_values" {
description = "Extra values for jx-git-operator chart as a list of yaml formated strings"
type = list(string)
type = list(string)
default = []
}

Expand Down

0 comments on commit e89ce6c

Please sign in to comment.