Skip to content

Instantly share code, notes, and snippets.

@VishDev12
Last active July 30, 2022 07:12
Show Gist options
  • Select an option

  • Save VishDev12/9389520bf10afd780f6a5f64919dcaab to your computer and use it in GitHub Desktop.

Select an option

Save VishDev12/9389520bf10afd780f6a5f64919dcaab to your computer and use it in GitHub Desktop.
Captures the two components needed for a runner using ARC.
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: general-runner
namespace: actions-runner-system
spec:
template:
spec:
metadata:
labels:
- cpu-medium
repository: cool-organization/private_repository
resources:
limits:
cpu: "4"
memory: "12Gi"
requests:
cpu: "1"
memory: "4Gi"
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: general-runner-autoscaler
namespace: actions-runner-system
spec:
scaleTargetRef:
name: general-runner
minReplicas: 0
maxReplicas: 60
metrics:
- type: TotalNumberOfQueuedAndInProgressWorkflowRuns
repositoryNames:
- cool-organization/private_repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment