Skip to content

Commit

Permalink
Add gha-runner-scale-set-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
abelfodil committed Jan 1, 2025
1 parent c2dc555 commit 8751128
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions kubernetes/services/templates/github-actions-runner-controller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
apiVersion: v1
kind: Secret
metadata:
name: gha-runner-scale-set
namespace: default
type: Opaque
# https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/authenticating-to-the-github-api#authenticating-arc-with-a-personal-access-token-classic
# stringData:
# github_token: ""

---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: gha-runner-scale-set-controller
namespace: default
spec:
chart: oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
version: 0.10.1
targetNamespace: default
valuesContent: |-
resources:
requests:
memory: 32Mi
cpu: 125m
limits:
memory: 128Mi
cpu: 250m
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: gha-runner-scale-set-abelfodil
namespace: default
spec:
chart: oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
version: 0.10.1
targetNamespace: default
valuesContent: |-
githubConfigUrl: https://github.com/abelfodil
githubConfigSecret: gha-runner-scale-set
2 changes: 2 additions & 0 deletions kubernetes/services/templates/self-hosted-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ spec:
value: {{ .Values.fqdn }}
- name: gitRepo
value: {{ .Values.gitRepo }}
- name: githubConfigUrl
value: {{ .Values.githubConfigUrl }}
destination:
server: https://kubernetes.default.svc

0 comments on commit 8751128

Please sign in to comment.