Terraform Bitbucket Runners
This module sets up a set of Bitbucket runners on a Kubernetes cluster. It accepts a list of runner configurations and deploys a Service
and a StatefulSet
for each of them.
No modules.
Name
Description
Type
Default
Required
bitbucket_runners
Map of Bitbucket runner definitions
map(object({ runner_resources = optional(object({ limits = optional(object({ cpu = optional(string) memory = optional(string) })) requests = optional(object({ cpu = optional(string) memory = optional(string) })) })) dind_resources = optional(object({ limits = optional(object({ cpu = optional(string) memory = optional(string) })) requests = optional(object({ cpu = optional(string) memory = optional(string) })) })) }))
n/a
yes
k8s_namespace
Kubernetes namespace where to deploy the runners to
string
n/a
yes
bitbucket_runner_container_default_resources
Default resources that will be applied to the Bitbucket runner container of all runner Pods, unless overriden in the runner definition
object({ limits = optional(object({ cpu = optional(string) memory = optional(string) })) requests = optional(object({ cpu = optional(string) memory = optional(string) })) })
{ "limits": { "cpu": null, "memory": "4G" }, "requests": { "cpu": 1, "memory": "1G" } }
no
dind_container_default_resources
Default resources that will be applied to the DinD container of all runner Pods, unless overriden in the runner definition
object({ limits = optional(object({ cpu = optional(string) memory = optional(string) })) requests = optional(object({ cpu = optional(string) memory = optional(string) })) })
{ "limits": { "cpu": null, "memory": "4G" }, "requests": { "cpu": 1, "memory": "1G" } }
no
k8s_labels
Labels to apply to all Kubernetes objects
map(string)
{}
no
k8s_node_selector
Node selector to apply to the runner StatefulSets
map(string)
null
no
k8s_service_account_annotations
Annotations to attach to the ServiceAccount
map(string)
{}
no
k8s_tolerations
Tolerations to apply to the runner StatefulSets
list(object({ effect = string key = string value = string }))
[]
no