From dead59c1682f75ae4fca4afd828391ca38aec85a Mon Sep 17 00:00:00 2001 From: invakid404 Date: Wed, 30 Aug 2023 01:03:18 +0300 Subject: [PATCH] chore(apps/actions-runner-controller): add runners for repo --- .../runners/home-cluster/kustomization.yaml | 4 +++ .../runners/home-cluster/runner.yaml | 25 +++++++++++++++++++ .../runners/kustomization.yaml | 1 + 3 files changed, 30 insertions(+) create mode 100644 apps/actions-runner-controller/runners/home-cluster/kustomization.yaml create mode 100644 apps/actions-runner-controller/runners/home-cluster/runner.yaml diff --git a/apps/actions-runner-controller/runners/home-cluster/kustomization.yaml b/apps/actions-runner-controller/runners/home-cluster/kustomization.yaml new file mode 100644 index 000000000..bb1020733 --- /dev/null +++ b/apps/actions-runner-controller/runners/home-cluster/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./runner.yaml diff --git a/apps/actions-runner-controller/runners/home-cluster/runner.yaml b/apps/actions-runner-controller/runners/home-cluster/runner.yaml new file mode 100644 index 000000000..b03f8327b --- /dev/null +++ b/apps/actions-runner-controller/runners/home-cluster/runner.yaml @@ -0,0 +1,25 @@ +apiVersion: actions.summerwind.dev/v1alpha1 +kind: RunnerDeployment +metadata: + name: home-cluster-runner + namespace: apps +spec: + template: + spec: + repository: invakid404/home-cluster + dockerMTU: 1400 +--- +apiVersion: actions.summerwind.dev/v1alpha1 +kind: HorizontalRunnerAutoscaler +metadata: + name: home-cluster-runner-autoscaler + namespace: apps +spec: + scaleTargetRef: + name: home-cluster-runner + minReplicas: 0 + maxReplicas: 3 + scaleUpTriggers: + - githubEvent: + workflowJob: {} + duration: "30m" diff --git a/apps/actions-runner-controller/runners/kustomization.yaml b/apps/actions-runner-controller/runners/kustomization.yaml index 93d0fe121..ab0725b3e 100644 --- a/apps/actions-runner-controller/runners/kustomization.yaml +++ b/apps/actions-runner-controller/runners/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: + - ./home-cluster - ./abcccid - ./invablog