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.
Name | Version |
---|---|
terraform | >= 1.0, < 1.6.0 |
kubernetes | ~> 2.13 |
Name | Version |
---|---|
kubernetes | ~> 2.13 |
No modules.
Name | Type |
---|---|
kubernetes_service.bitbucket_runner | resource |
kubernetes_service_account.bitbucket_runner | resource |
kubernetes_stateful_set.bitbucket_runner | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bitbucket_runners | Map of Bitbucket runner definitions | map(object({ |
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({ |
{ |
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({ |
{ |
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({ |
[] |
no |
Name | Description |
---|---|
kubernetes_service_account_name | n/a |