actions-runner-controller
A Kubernetes controller that operates self-hosted runners for GitHub Actions on your Kubernetes cluster.
About this chart
Docs
All additional docs are kept in the docs/ folder, this README is solely for documenting the values.yaml keys and values
Values
The values are documented as of HEAD, to review the configuration options for your chart version ensure you view this file at the relevant tag
Default values are the defaults set in the charts
values.yaml, some properties have default configurations in the code for when the property is omitted or invalid
| Key | Description | Default |
|---|---|---|
labels | Set labels to apply to all resources in the chart | |
replicaCount | Set the number of controller pods | 1 |
webhookPort | Set the containerPort for the webhook Pod | 9443 |
syncPeriod | Set the period in which the controller reconciles the desired runners count | 1m |
enableLeaderElection | Enable election configuration | true |
leaderElectionId | Set the election ID for the controller group | |
githubEnterpriseServerURL | Set the URL for a self-hosted GitHub Enterprise Server | |
githubURL | Override GitHub URL to be used for GitHub API calls | |
githubUploadURL | Override GitHub Upload URL to be used for GitHub API calls | |
runnerGithubURL | Override GitHub URL to be used by runners during registration | |
logLevel | Set the log level of the controller container | |
logFormat | Set the log format of the controller. Valid options are "text" and "json" | text |
additionalVolumes | Set additional volumes to add to the manager container | |
additionalVolumeMounts | Set additional volume mounts to add to the manager container | |
authSecret.create | Deploy the controller auth secret | false |
authSecret.name | Set the name of the auth secret | controller-manager |
authSecret.annotations | Set annotations for the auth Secret | |
authSecret.github_app_id | The ID of your GitHub App. This can't be set at the same time as authSecret.github_token | |
authSecret.github_app_installation_id | The ID of your GitHub App installation. This can't be set at the same time as authSecret.github_token | |
authSecret.github_app_private_key | The multiline string of your GitHub App's private key. This can't be set at the same time as authSecret.github_token | |
authSecret.github_token | Your chosen GitHub PAT token. This can't be set at the same time as the authSecret.github_app_* | |
authSecret.github_basicauth_username | Username for GitHub basic auth to use instead of PAT or GitHub APP in case it's running behind a proxy API | |
authSecret.github_basicauth_password | Password for GitHub basic auth to use instead of PAT or GitHub APP in case it's running behind a proxy API | |
dockerRegistryMirror | The default Docker Registry Mirror used by runners. | |
hostNetwork | The "hostNetwork" of the controller container | false |
dnsPolicy | The "dnsPolicy" of the controller container | ClusterFirst |
image.repository | The "repository/image" of the controller container | summerwind/actions-runner-controller |
image.tag | The tag of the controller container | |
image.actionsRunnerRepositoryAndTag | The "repository/image" of the actions runner container | summerwind/actions-runner:latest |
image.actionsRunnerImagePullSecrets | Optional image pull secrets to be included in the runner pod's ImagePullSecrets | |
image.dindSidecarRepositoryAndTag | The "repository/image" of the dind sidecar container | docker:dind |
image.pullPolicy | The pull policy of the controller image | IfNotPresent |
metrics.serviceMonitor.enable | Deploy serviceMonitor kind for for use with prometheus-operator CRDs | false |
metrics.serviceMonitor.interval | Configure the interval that Prometheus should scrap the controller's metrics | 1m |
| `metrics.serviceMonitor.namespace | Namespace which Prometheus is running in | Release.Namespace (the default namespace of the helm chart). |
metrics.serviceMonitor.timeout | Configure the timeout the timeout of Prometheus scrapping. | 30s |
metrics.serviceAnnotations | Set annotations for the provisioned metrics service resource | |
metrics.port | Set port of metrics service | 8443 |
metrics.proxy.enabled | Deploy kube-rbac-proxy container in controller pod | true |
metrics.proxy.image.repository | The "repository/image" of the kube-proxy container | quay.io/brancz/kube-rbac-proxy |
metrics.proxy.image.tag | The tag of the kube-proxy image to use when pulling the container | v0.13.1 |
metrics.serviceMonitorLabels | Set labels to apply to ServiceMonitor resources | |
imagePullSecrets | Specifies the secret to be used when pulling the controller pod containers |
Deploy actions-runner-controller with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has actions-runner-controller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartactions-runner-controller is pinned at v0.23.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply