Skip to content

Commit

Permalink
Make worker volume size configurable in AWS configs
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii committed Oct 21, 2022
1 parent 785219d commit 870cc47
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/terraform/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ No modules.
| <a name="input_worker_deploy_ssh_key"></a> [worker\_deploy\_ssh\_key](#input\_worker\_deploy\_ssh\_key) | add provided ssh public key to MachineDeployments | `bool` | `true` | no |
| <a name="input_worker_os"></a> [worker\_os](#input\_worker\_os) | OS to run on worker machines, default to var.os | `string` | `""` | no |
| <a name="input_worker_type"></a> [worker\_type](#input\_worker\_type) | instance type for workers | `string` | `"t3.medium"` | no |
| <a name="input_worker_volume_size"></a> [worker\_volume\_size](#input\_worker\_volume\_size) | Size of the EBS volume, in Gb | `number` | `50` | no |

## Outputs

Expand Down
6 changes: 3 additions & 3 deletions examples/terraform/aws/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ output "kubeone_workers" {
subnetId = local.subnets[local.zoneA]
instanceType = var.worker_type
assignPublicIP = true
diskSize = 50
diskSize = var.worker_volume_size
diskType = "gp2"
## Only applicable if diskType = io1
diskIops = 500
Expand Down Expand Up @@ -183,7 +183,7 @@ output "kubeone_workers" {
subnetId = local.subnets[local.zoneB]
instanceType = var.worker_type
assignPublicIP = true
diskSize = 50
diskSize = var.worker_volume_size
diskType = "gp2"
## Only applicable if diskType = io1
diskIops = 500
Expand Down Expand Up @@ -241,7 +241,7 @@ output "kubeone_workers" {
subnetId = local.subnets[local.zoneC]
instanceType = var.worker_type
assignPublicIP = true
diskSize = 50
diskSize = var.worker_volume_size
diskType = "gp2"
## Only applicable if diskType = io1
diskIops = 500
Expand Down
6 changes: 6 additions & 0 deletions examples/terraform/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ variable "worker_type" {
type = string
}

variable "worker_volume_size" {
default = 50
description = "Size of the EBS volume, in Gb"
type = number
}

variable "bastion_type" {
default = "t3.nano"
description = "instance type for bastion"
Expand Down

0 comments on commit 870cc47

Please sign in to comment.