diff --git a/kubernetes/services/templates/github-actions-runner-controller.yml b/kubernetes/services/templates/github-actions-runner-controller.yml new file mode 100644 index 0000000..8f478d3 --- /dev/null +++ b/kubernetes/services/templates/github-actions-runner-controller.yml @@ -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 diff --git a/kubernetes/services/templates/self-hosted-services.yml b/kubernetes/services/templates/self-hosted-services.yml index b5a8060..894de5d 100644 --- a/kubernetes/services/templates/self-hosted-services.yml +++ b/kubernetes/services/templates/self-hosted-services.yml @@ -31,5 +31,7 @@ spec: value: {{ .Values.fqdn }} - name: gitRepo value: {{ .Values.gitRepo }} + - name: githubConfigUrl + value: {{ .Values.githubConfigUrl }} destination: server: https://kubernetes.default.svc