Skip to content

Instantly share code, notes, and snippets.

@sofiegonzalez
Created May 28, 2024 20:46
Show Gist options
  • Save sofiegonzalez/a9a8e447924294d060533ea472f6557e to your computer and use it in GitHub Desktop.
Save sofiegonzalez/a9a8e447924294d060533ea472f6557e to your computer and use it in GitHub Desktop.
AutoscalingRunnerSet
apiVersion: actions.github.com/v1alpha1
kind: AutoscalingRunnerSet
metadata:
annotations:
actions.github.com/cleanup-github-secret-name: gha-runner-scale-set-kubernetes-gha-rs-github-secret
actions.github.com/cleanup-kubernetes-mode-role-binding-name: gha-runner-scale-set-kubernetes-gha-rs-kube-mode
actions.github.com/cleanup-kubernetes-mode-role-name: gha-runner-scale-set-kubernetes-gha-rs-kube-mode
actions.github.com/cleanup-kubernetes-mode-service-account-name: gha-runner-scale-set-kubernetes-gha-rs-kube-mode
actions.github.com/cleanup-manager-role-binding: gha-runner-scale-set-kubernetes-gha-rs-manager
actions.github.com/cleanup-manager-role-name: gha-runner-scale-set-kubernetes-gha-rs-manager
actions.github.com/runner-group-name: Default
actions.github.com/runner-scale-set-name: gha-runner-scale-set-kubernetes
actions.github.com/values-hash: 38f5d4fdaad93047c8c731dbe4f9df48616d7e3f035abad0a742a42524e148f
meta.helm.sh/release-name: gha-runner-scale-set-kubernetes
meta.helm.sh/release-namespace: gha-runner-scale-set-runners
runner-scale-set-id: "8"
creationTimestamp: "2024-05-08T20:19:29Z"
finalizers:
- autoscalingrunnerset.actions.github.com/finalizer
generation: 4
labels:
actions.github.com/organization: Medium
actions.github.com/repository: mono
actions.github.com/scale-set-name: gha-runner-scale-set-kubernetes
actions.github.com/scale-set-namespace: gha-runner-scale-set-runners
app.kubernetes.io/component: autoscaling-runner-set
app.kubernetes.io/instance: gha-runner-scale-set-kubernetes
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: gha-runner-scale-set-kubernetes
app.kubernetes.io/part-of: gha-rs
app.kubernetes.io/version: 0.9.0
helm.sh/chart: gha-rs-0.9.0
name: gha-runner-scale-set-kubernetes
namespace: gha-runner-scale-set-runners
resourceVersion: "698683331"
uid: 0a86794f-34db-4cf2-8f52-aac2e9236e2d
spec:
githubConfigSecret: gha-runner-scale-set-kubernetes-gha-rs-github-secret
githubConfigUrl: https://github.com/Medium/mono
maxRunners: 5
minRunners: 2
runnerScaleSetName: gha-runner-scale-set-kubernetes
template:
metadata:
annotations:
iam.amazonaws.com/role: arn:aws:iam::674804321375:role/kbfd
spec:
containers:
- command:
- /home/runner/run.sh
env:
- name: ACTIONS_RUNNER_CONTAINER_HOOKS
value: /home/runner/k8s/index.js
- name: ACTIONS_RUNNER_CONTAINER_HOOK_TEMPLATE
value: /home/runner/pod-template/default.yaml
- name: ACTIONS_RUNNER_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER
value: "true"
image: ghcr.io/actions/actions-runner:2.316.1
name: runner
volumeMounts:
- mountPath: /home/runner/_work
name: work
- mountPath: /home/runner/pod-template
name: pod-template
readOnly: true
initContainers:
- command:
- sudo
- chown
- -R
- 1001:123
- /home/runner/_work
image: ghcr.io/actions/actions-runner:latest
name: kube-init
volumeMounts:
- mountPath: /home/runner/_work
name: work
restartPolicy: Never
serviceAccount: gha-runner-scale-set-kubernetes-gha-rs-kube-mode
serviceAccountName: gha-runner-scale-set-kubernetes-gha-rs-kube-mode
volumes:
- ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: gp3-medium
name: work
- configMap:
name: pod-template
name: pod-template
status:
currentRunners: 2
pendingEphemeralRunners: 1
runningEphemeralRunners: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment