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
4 changes: 3 additions & 1 deletion modules/gh-runner-gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ This example shows how to deploy Self Hosted Runners on GKE that supports Docker
| arc\_systems\_namespace | Namespace created for the ARC operator pods. | `string` | `"arc-systems"` | no |
| cluster\_suffix | Name of the GitHub organization associated with this runner cluster. | `string` | `"arc"` | no |
| create\_network | When set to true, VPC will be auto created | `bool` | `true` | no |
| disk\_size\_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | `number` | `100` | no |
| disk\_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | `string` | `"pd-standard"` | no |
| enable\_private\_nodes | Whether nodes have internal IP addresses only. | `bool` | `false` | no |
| gh\_app\_id | After creating the GitHub App, on the GitHub App's page, note the value for "App ID". | `string` | n/a | yes |
| gh\_app\_installation\_id | You can find the app installation ID on the app installation page, which has the following URL format: `https://github.com/organizations/ORGANIZATION/settings/installations/INSTALLATION_ID` | `string` | n/a | yes |
Expand Down Expand Up @@ -121,4 +123,4 @@ This example shows how to deploy Self Hosted Runners on GKE that supports Docker
| service\_account | The default service account used for running nodes. |
| subnet\_name | Name of VPC |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2 changes: 2 additions & 0 deletions modules/gh-runner-gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ module "runner-cluster" {
machine_type = var.machine_type
enable_private_nodes = var.enable_private_nodes
spot = var.spot
disk_size_gb = var.disk_size_gb
disk_type = var.disk_type
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions modules/gh-runner-gke/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ spec:
type: bool
default: true
required: false
- name: disk_size_gb
description: Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB
type: number
default: 100
required: false
- name: disk_type
description: Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
type: string
default: pd-standard
required: false
- name: gh_token
description: Github token that is used for generating Self Hosted Runner Token
type: string
Expand Down
12 changes: 12 additions & 0 deletions modules/gh-runner-gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,15 @@ variable "spot" {
description = "A boolean that represents whether the underlying node VMs are spot"
default = false
}

variable "disk_size_gb" {
type = number
description = "Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB"
default = 100
}

variable "disk_type" {
type = string
description = "Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')"
default = "pd-standard"
}