Skip to content

Commit

Permalink
feat(arc): use kubernetes mode
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Dec 30, 2024
1 parent 648822d commit 9b27dc3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .taskfiles/kubernetes/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,17 @@ tasks:
vars: [CLUSTER]
preconditions:
- which kubectl

# https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/deploying-runner-scale-sets-with-actions-runner-controller#upgrading-arc
upgrade-arc:
desc: Upgrade the ARC [CLUSTER=main]
cmds:
- helm -n actions-runner-system uninstall gha-runner-scale-set
- helm -n actions-runner-system uninstall gha-runner-scale-set-controller
- sleep 5
- flux -n actions-runner-system reconcile hr gha-runner-scale-set-controller
- flux -n actions-runner-system reconcile hr gha-runner-scale-set
requires:
vars: [CLUSTER]
preconditions:
- which flux helm
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,22 @@ spec:
minRunners: 1
maxRunners: 3
containerMode:
type: dind
type: kubernetes
kubernetesModeWorkVolumeClaim:
accessModes: ["ReadWriteOnce"]
storageClassName: ceph-block
resources:
requests:
storage: 20Gi
template:
spec:
automountServiceAccountToken: true
containers:
- name: runner
image: ghcr.io/onedr0p/actions-runner:2.321.0@sha256:3665cbbcd2a3b7e1626e6100a6924d316d501650b9863a24b5639aee68bdb110
command: ["/home/runner/run.sh"]
env:
- name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER
value: "false"
- name: NODE_IP
valueFrom:
fieldRef:
Expand All @@ -64,6 +71,8 @@ spec:
- mountPath: /var/run/secrets/talos.dev
name: talos
readOnly: true
securityContext:
fsGroup: 123
serviceAccountName: actions-runner
volumes:
- name: talos
Expand Down

0 comments on commit 9b27dc3

Please sign in to comment.