🚀 github-action-runner-controller

This commit is contained in:
auricom
2023-07-08 09:35:25 +02:00
parent 71517b519c
commit 3ed66ca074
11 changed files with 199 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: arc-home-ops
namespace: actions-runner-system
spec:
interval: 30m
chart:
spec:
chart: gha-runner-scale-set
version: 0.4.0
sourceRef:
kind: HelmRepository
name: actions-runner-controller
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
runnerScaleSetName: arc-runner-set-home-ops
githubConfigUrl: https://github.com/auricom/home-ops
minRunners: 1
maxRunners: 3
containerMode:
type: dind
template:
spec:
containers:
- name: runner
image: ghcr.io/onedr0p/github-actions-runner:rolling@sha256:d3aee5104a6fc59b96641d533d3ff07e6af414d42fc0c93d950fa7a4aa126ecd
valuesFrom:
- kind: Secret
name: actions-runner-controller-auth-secret
valuesKey: github_app_id
targetPath: githubConfigSecret.github_app_id
- kind: Secret
name: actions-runner-controller-auth-secret
valuesKey: github_app_installation_id
targetPath: githubConfigSecret.github_app_installation_id
- kind: Secret
name: actions-runner-controller-auth-secret
valuesKey: github_app_private_key
targetPath: githubConfigSecret.github_app_private_key

View File

@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: actions-runner-system
resources:
- ./helmrelease.yaml