Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/gh-runner-mig-container-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ This example shows how to deploy a Self Hosted Runner on MIG Container VMs.
| cooldown\_period | The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. | `number` | `60` | no |
| create\_network | When set to true, VPC,router and NAT will be auto created | `bool` | `true` | no |
| dind | Flag to determine whether to expose dockersock | `bool` | `false` | no |
| disk\_size\_gb | Instance disk size in GB | `number` | `100` | no |
| disk\_type | Instance disk type, can be either pd-ssd, local-ssd, or pd-standard | `string` | `"pd-ssd"` | no |
| gh\_token | Github token that is used for generating Self Hosted Runner Token | `string` | n/a | yes |
| image | The github runner image | `string` | n/a | yes |
| instance\_name | The gce instance name | `string` | `"gh-runner"` | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/gh-runner-mig-container-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ module "mig_template" {
"https://www.googleapis.com/auth/cloud-platform",
]
}
disk_size_gb = 100
disk_type = "pd-ssd"
disk_size_gb = var.disk_size_gb
disk_type = var.disk_type
auto_delete = true
name_prefix = "gh-runner"
source_image_family = "cos-stable"
Expand Down
12 changes: 12 additions & 0 deletions modules/gh-runner-mig-container-vm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,15 @@ variable "spot_instance_termination_action" {
type = string
default = "STOP"
}

variable "disk_size_gb" {
type = number
description = "Instance disk size in GB"
default = 100
}

variable "disk_type" {
type = string
description = "Instance disk type, can be either pd-ssd, local-ssd, or pd-standard"
default = "pd-ssd"
}
2 changes: 2 additions & 0 deletions modules/gh-runner-mig-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ This example shows how to deploy a MIG Self Hosted Runner with an image pre-bake
| create\_network | When set to true, VPC,router and NAT will be auto created | `bool` | `true` | no |
| create\_subnetwork | Whether to create subnetwork or use the one provided via subnet\_name | `bool` | `true` | no |
| custom\_metadata | User provided custom metadata | `map(any)` | `{}` | no |
| disk\_size\_gb | Instance disk size in GB | `number` | `100` | no |
| disk\_type | Instance disk type, can be either pd-ssd, local-ssd, or pd-standard | `string` | `"pd-ssd"` | no |
| gh\_runner\_labels | GitHub runner labels to attach to the runners. Docs: https://docs.github.com/en/actions/hosting-your-own-runners/using-labels-with-self-hosted-runners | `set(string)` | `[]` | no |
| gh\_token | Github token that is used for generating Self Hosted Runner Token | `string` | n/a | yes |
| instance\_tags | Additional tags to add to the instances | `list(string)` | `[]` | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/gh-runner-mig-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ module "mig_template" {
"https://www.googleapis.com/auth/cloud-platform",
]
}
disk_size_gb = 100
disk_type = "pd-ssd"
disk_size_gb = var.disk_size_gb
disk_type = var.disk_type
auto_delete = true
name_prefix = "gh-runner"
source_image_family = var.source_image_family
Expand Down
12 changes: 12 additions & 0 deletions modules/gh-runner-mig-vm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,15 @@ variable "spot_instance_termination_action" {
type = string
default = "STOP"
}

variable "disk_size_gb" {
type = number
description = "Instance disk size in GB"
default = 100
}

variable "disk_type" {
type = string
description = "Instance disk type, can be either pd-ssd, local-ssd, or pd-standard"
default = "pd-ssd"
}