This example shows how to deploy runners that support Docker Workflows on GKE.
More examples of Self Hosted Runners on GKE/Anthos.
-
Follow the instructions in the GitHub documentation to create a GitHub App for authenticating ARC
-
Gather the values for your GitHub App ID, GitHub App Installation ID, and GitHub App Private Key from the instructions linked above.
-
Substitute your values into the example
main.tf
. Modify any other values as needed. For a full list of available variables, refer to the module documentation. -
Execute Terraform commands to create the required resources.
terraform init
terraform apply
- Your runners should become active at
https://github.com/organizations/ORGANIZATION/settings/actions/runners
.
Name | Description | Type | Default | Required |
---|---|---|---|---|
project_id | The project id to deploy Github Runner MIG | string |
n/a | yes |
Name | Description |
---|---|
cluster_name | Cluster name |
location | Cluster location |
project_id | The project in which resources are created |
service_account | The default service account used for running nodes. |