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