actions-runner-controller

by actions-runner-controller

Helm chartv0.23.7App 0.27.6

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

KeyDescriptionDefault
labelsSet labels to apply to all resources in the chart
replicaCountSet the number of controller pods1
webhookPortSet the containerPort for the webhook Pod9443
syncPeriodSet the period in which the controller reconciles the desired runners count1m
enableLeaderElectionEnable election configurationtrue
leaderElectionIdSet the election ID for the controller group
githubEnterpriseServerURLSet the URL for a self-hosted GitHub Enterprise Server
githubURLOverride GitHub URL to be used for GitHub API calls
githubUploadURLOverride GitHub Upload URL to be used for GitHub API calls
runnerGithubURLOverride GitHub URL to be used by runners during registration
logLevelSet the log level of the controller container
logFormatSet the log format of the controller. Valid options are "text" and "json"text
additionalVolumesSet additional volumes to add to the manager container
additionalVolumeMountsSet additional volume mounts to add to the manager container
authSecret.createDeploy the controller auth secretfalse
authSecret.nameSet the name of the auth secretcontroller-manager
authSecret.annotationsSet annotations for the auth Secret
authSecret.github_app_idThe ID of your GitHub App. This can't be set at the same time as authSecret.github_token
authSecret.github_app_installation_idThe ID of your GitHub App installation. This can't be set at the same time as authSecret.github_token
authSecret.github_app_private_keyThe multiline string of your GitHub App's private key. This can't be set at the same time as authSecret.github_token
authSecret.github_tokenYour chosen GitHub PAT token. This can't be set at the same time as the authSecret.github_app_*
authSecret.github_basicauth_usernameUsername for GitHub basic auth to use instead of PAT or GitHub APP in case it's running behind a proxy API
authSecret.github_basicauth_passwordPassword for GitHub basic auth to use instead of PAT or GitHub APP in case it's running behind a proxy API
dockerRegistryMirrorThe default Docker Registry Mirror used by runners.
hostNetworkThe "hostNetwork" of the controller containerfalse
dnsPolicyThe "dnsPolicy" of the controller containerClusterFirst
image.repositoryThe "repository/image" of the controller containersummerwind/actions-runner-controller
image.tagThe tag of the controller container
image.actionsRunnerRepositoryAndTagThe "repository/image" of the actions runner containersummerwind/actions-runner:latest
image.actionsRunnerImagePullSecretsOptional image pull secrets to be included in the runner pod's ImagePullSecrets
image.dindSidecarRepositoryAndTagThe "repository/image" of the dind sidecar containerdocker:dind
image.pullPolicyThe pull policy of the controller imageIfNotPresent
metrics.serviceMonitor.enableDeploy serviceMonitor kind for for use with prometheus-operator CRDsfalse
metrics.serviceMonitor.intervalConfigure the interval that Prometheus should scrap the controller's metrics1m
`metrics.serviceMonitor.namespaceNamespace which Prometheus is running inRelease.Namespace (the default namespace of the helm chart).
metrics.serviceMonitor.timeoutConfigure the timeout the timeout of Prometheus scrapping.30s
metrics.serviceAnnotationsSet annotations for the provisioned metrics service resource
metrics.portSet port of metrics service8443
metrics.proxy.enabledDeploy kube-rbac-proxy container in controller podtrue
metrics.proxy.image.repositoryThe "repository/image" of the kube-proxy containerquay.io/brancz/kube-rbac-proxy
metrics.proxy.image.tagThe tag of the kube-proxy image to use when pulling the containerv0.13.1
metrics.serviceMonitorLabelsSet labels to apply to ServiceMonitor resources
imagePullSecretsSpecifies 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartactions-runner-controller is pinned at v0.23.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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