From 72bd259e532049c3087cdef64a0e4476e4bc9b3a Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Sat, 6 Dec 2025 14:30:17 +0000 Subject: [PATCH] autoscale test --- .github/workflows/test-autoscaling.yml | 2 +- github_runner/install/Step1.txt | 16 ---------------- github_runner/install/Step2.txt | 3 --- github_runner/install/Step3.txt | 3 --- github_runner/install/autoscale.yaml | 15 --------------- github_runner/install/runnerset.yaml | 14 -------------- 6 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 github_runner/install/Step1.txt delete mode 100644 github_runner/install/Step2.txt delete mode 100644 github_runner/install/Step3.txt delete mode 100644 github_runner/install/autoscale.yaml delete mode 100644 github_runner/install/runnerset.yaml diff --git a/.github/workflows/test-autoscaling.yml b/.github/workflows/test-autoscaling.yml index 3378e73..7583149 100644 --- a/.github/workflows/test-autoscaling.yml +++ b/.github/workflows/test-autoscaling.yml @@ -5,7 +5,7 @@ on: jobs: load-test: - runs-on: [self-hosted, arc] + runs-on: mealcraft-runners strategy: matrix: job_id: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] diff --git a/github_runner/install/Step1.txt b/github_runner/install/Step1.txt deleted file mode 100644 index e6a2cc0..0000000 --- a/github_runner/install/Step1.txt +++ /dev/null @@ -1,16 +0,0 @@ -#microk8s things -sudo microk8s enable dns rbac -sudo microk8s enable storage -sudo microk8s enable storage -microk8s kubectl config view --raw > ~/.kube/config -chmod 600 ~/.kube/config -sudo usermod -aG microk8s $USER -sudo chown -f -R $USER ~/.kube -newgrp microk8s - - - -helm repo add actions-runner-controller https://actions-runner-controller.github.io/actions-runner-controller -helm repo update - -kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml diff --git a/github_runner/install/Step2.txt b/github_runner/install/Step2.txt deleted file mode 100644 index 3e30480..0000000 --- a/github_runner/install/Step2.txt +++ /dev/null @@ -1,3 +0,0 @@ -helm install arc actions-runner-controller/actions-runner-controller \ - --namespace actions-runner-system \ - --create-namespace diff --git a/github_runner/install/Step3.txt b/github_runner/install/Step3.txt deleted file mode 100644 index b66864d..0000000 --- a/github_runner/install/Step3.txt +++ /dev/null @@ -1,3 +0,0 @@ -kubectl create secret generic controller-manager \ - -n actions-runner-system \ - --from-literal=github_token=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 \ No newline at end of file diff --git a/github_runner/install/autoscale.yaml b/github_runner/install/autoscale.yaml deleted file mode 100644 index 77b7f0e..0000000 --- a/github_runner/install/autoscale.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: actions.summerwind.dev/v1alpha1 -kind: HorizontalRunnerAutoscaler -metadata: - name: mealcraft-org-autoscaler - namespace: actions-runner-system -spec: - scaleTargetRef: - name: mealcraft-org-runners - minReplicas: 1 - maxReplicas: 20 # adjust based on your server size - metrics: - - type: TotalNumberOfQueuedAndInProgressWorkflowRuns - # This applies to ALL MealCraft repos - repositoryNames: - - "MealCraft/*" \ No newline at end of file diff --git a/github_runner/install/runnerset.yaml b/github_runner/install/runnerset.yaml deleted file mode 100644 index 522c42b..0000000 --- a/github_runner/install/runnerset.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: actions.summerwind.dev/v1alpha1 -kind: RunnerDeployment -metadata: - name: mealcraft-org-runners - namespace: actions-runner-system -spec: - replicas: 1 # minimum number of runners online - template: - spec: - organization: MealCraft - labels: - - mealcraft-org - - arc - - microk8s