terraform-kubectl-github-actions-runner
Setup the a GitHub Actions Runner in an existing kubernetes cluster
To setup the runner controller see the actions runner controller module from the terraform-kubectl-github-actions-runner-controller repository.
Name |
Description |
Type |
Default |
Required |
repo_name |
The name of the repository |
string |
n/a |
yes |
repo_owner |
The owner of the repository |
string |
n/a |
yes |
create_namespace |
If true, the namespace will be created |
bool |
true |
no |
ephemeral |
If true, the runner will be ephemeral |
bool |
true |
no |
job_service_account_name |
The name of the service account for the job |
string |
"github-actions-job" |
no |
labels |
The labels for the runner |
list(string) |
[ "k8s", "arc" ] |
no |
max_count |
The maximum number of runners |
number |
3 |
no |
metrics |
The metrics for the runner |
list(map(string)) |
[ { "scaleDownFactor": "0.5", "scaleDownThreshold": "0.25", "scaleUpFactor": "2", "scaleUpThreshold": "0.75", "type": "PercentageRunnersBusy" } ] |
no |
min_count |
The minimum number of runners |
number |
1 |
no |
name |
The name of the runner deployment |
string |
"github-actions-runner" |
no |
namespace |
The namespace to deploy the runner controller into |
string |
"github-actions-runner" |
no |
runner_image |
The image for the runner |
string |
"summerwind/actions-runner:latest" |
no |
runner_service_account_name |
The name of the service account for the runner |
string |
"github-actions-runner" |
no |
scale_down_delay_seconds |
The number of seconds from scaling out to wait before scaling down |
number |
300 |
no |
storage_class_name |
The storage class name for the runner |
string |
"default" |
no |
storage_size |
The storage size for the runner |
string |
"100Mi" |
no |