Restructure: servers/legion/ layout, rename repo to infrastructure

This commit is contained in:
Will Anderson
2026-03-23 07:38:42 -05:00
parent 7751eddd73
commit 0b4a236a88
22 changed files with 4 additions and 4 deletions
+94
View File
@@ -0,0 +1,94 @@
# GitHub Actions Self-Hosted Runner — org-level, serves all repos
resource "kubernetes_deployment" "github_runner" {
metadata {
name = "github-runner"
namespace = kubernetes_namespace.ci.metadata[0].name
labels = {
app = "github-runner"
}
}
spec {
replicas = 1
selector {
match_labels = {
app = "github-runner"
}
}
template {
metadata {
labels = {
app = "github-runner"
}
}
spec {
container {
name = "runner"
image = "myoung34/github-runner:latest"
env {
name = "ACCESS_TOKEN"
value = var.github_classic_pat
}
env {
name = "RUNNER_SCOPE"
value = "org"
}
env {
name = "ORG_NAME"
value = "harmonic-framework"
}
env {
name = "RUNNER_NAME"
value = "legion"
}
env {
name = "RUNNER_WORKDIR"
value = "/tmp/runner"
}
env {
name = "LABELS"
value = "self-hosted,linux,x64,legion"
}
env {
name = "DISABLE_AUTO_UPDATE"
value = "true"
}
volume_mount {
name = "docker-sock"
mount_path = "/var/run/docker.sock"
}
resources {
requests = {
memory = "512Mi"
cpu = "250m"
}
limits = {
memory = "4Gi"
cpu = "4"
}
}
}
volume {
name = "docker-sock"
host_path {
path = "/var/run/docker.sock"
type = "Socket"
}
}
}
}
}
}