Skip to content
Merged
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: 2 additions & 2 deletions .github/gh-actions-self-hosted-runners/arc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ main_runner = {
max_node_count = "5" # Main runner pool maximal node count
min_replicas = "5" # Min number of runner PODs in the main pool . Do not confuse with Nodes
max_replicas = "20" # Max number of runner PODs in the main pool . Do not confuse with Nodes
webhook_scaling # Enable webhook scaling for main pool
webhook_scaling = true # Enable webhook scaling for main pool
}
environment = "environment_name" # Name of the environment. Used as a prefix like dev- stag- anything-
ingress_domain = "fqdn" # FQDN for webhook ingress
Expand All @@ -66,7 +66,7 @@ machine_type = "e2-standard-2" # Macihne type for the pool
min_node_count = 1 # Minimal node count
max_node_count = 2 # Maximal node count
min_replicas = 1 # Minimal replica count
min_replicas = 2 # Maximal replica count
max_replicas = 2 # Maximal replica count
webhook_scaling = true # Enable webhook based scaling
runner_image = "gcr.io/someimage:sometag" # Image to use
labels = ["self-hosted", "testrunner"] # Label set for runner pool. Used in `on`
Expand Down
13 changes: 13 additions & 0 deletions .github/gh-actions-self-hosted-runners/arc/gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ resource "google_container_node_pool" "main-actions-runner-pool" {
]
service_account = data.google_service_account.service_account.email
tags = ["actions-runner-pool"]
labels = {
"runner-pool" = var.main_runner.name
}
}
lifecycle {
ignore_changes = [
node_config[0].resource_labels,
]
}
}

resource "google_container_node_pool" "additional_runner_pools" {
Expand Down Expand Up @@ -88,7 +96,12 @@ resource "google_container_node_pool" "additional_runner_pools" {
}
}
}
lifecycle {
ignore_changes = [
node_config[0].resource_labels,
]
}
}


resource "google_compute_global_address" "actions-runner-ip" {
Expand Down
10 changes: 5 additions & 5 deletions .github/gh-actions-self-hosted-runners/arc/helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ resource "helm_release" "cert-manager" {
repository = "https://charts.jetstack.io"
chart = "cert-manager"

atomic = "true"
timeout = 100
atomic = true
timeout = 600

set = [
{
Expand All @@ -38,12 +38,12 @@ resource "helm_release" "cert-manager" {
resource "helm_release" "arc" {
name = "arc"
namespace = "arc"
create_namespace = "true"
create_namespace = true
repository = "https://actions-runner-controller.github.io/actions-runner-controller"
chart = "actions-runner-controller"

atomic = "true"
timeout = 120
atomic = true
timeout = 600

set = [
for k, v in local.arc_values : {
Expand Down
Loading