Files
auricom-home-cluster/kubernetes/apps/actions-runner-system/actions-runner-controller/runners/helmrelease.yaml
2024-08-09 01:04:06 +02:00

56 lines
1.7 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: arc-home-ops
namespace: actions-runner-system
spec:
interval: 30m
chart:
spec:
chart: gha-runner-scale-set
version: 0.9.3
sourceRef:
kind: HelmRepository
name: actions-runner-controller
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
valuesFrom:
- targetPath: githubConfigSecret.github_app_id
kind: Secret
name: actions-runner-controller-auth-secret
valuesKey: ACTION_RUNNER_CONTROLLER_GITHUB_APP_ID
- targetPath: githubConfigSecret.github_app_installation_id
kind: Secret
name: actions-runner-controller-auth-secret
valuesKey: ACTION_RUNNER_CONTROLLER_GITHUB_INSTALLATION_ID
- targetPath: githubConfigSecret.github_app_private_key
kind: Secret
name: actions-runner-controller-auth-secret
valuesKey: ACTION_RUNNER_CONTROLLER_GITHUB_PRIVATE_KEY
values:
runnerScaleSetName: arc-runner-set-home-ops
githubConfigUrl: https://github.com/auricom/home-ops
minRunners: 1
maxRunners: 6
containerMode:
type: dind
template:
spec:
containers:
- name: runner
image: ghcr.io/actions/actions-runner:2.319.0@sha256:3bee2ec62f586beb76013d462df84d3dafc7dff94fe4ac731bcf3157c3a324f3
command: ["/home/runner/run.sh"]
controllerServiceAccount:
name: actions-runner-controller-gha-rs-controller
namespace: actions-runner-system