Skip to content

Commit

Permalink
k8s/arc: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrssreal committed Dec 22, 2024
1 parent 8d32f24 commit ad82d4f
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
9 changes: 9 additions & 0 deletions k8s/github-runners/namespaces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: actions-runner-controller
---
apiVersion: v1
kind: Namespace
metadata:
name: github-runners
26 changes: 26 additions & 0 deletions k8s/github-runners/scale-set-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gha-runner-scale-set-controller
namespace: apps
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: apps
sources:
- chart: gha-runner-scale-set-controller
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.10.1
helm:
releaseName: gha-runner-scale-set-controller
destination:
server: "https://kubernetes.default.svc"
namespace: actions-runner-controller
syncPolicy:
syncOptions:
# https://github.com/argoproj/argo-cd/issues/820
- Replace=true
automated:
prune: true
selfHeal: true
allowEmpty: false
30 changes: 30 additions & 0 deletions k8s/github-runners/scale-set.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gha-runner-scale-set
namespace: apps
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: apps
sources:
- chart: gha-runner-scale-set
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.10.1
helm:
releaseName: gha-runner-scale-set
valuesObject:
githubConfigUrl: https://github.com/ttrssreal/jix
# FIXME: part of declarative secret management
githubConfigSecret: jess-gh-pat
controllerServiceAccount:
namespace: actions-runner-controller
destination:
server: "https://kubernetes.default.svc"
namespace: github-runners
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false

0 comments on commit ad82d4f

Please sign in to comment.