Terraform module to deploy Gitlab Runner on EKS
module "gitlab_runner" {
source = "blackbird-cloud/eks-gitlab-runner/aws"
version = "~> 1"
create_namespace = true
role_arn = "arn:xxxxxx:xx/xxxx/xxx"
name = "production_runner"
cluster_name = "production_cluster"
default_image = "registry.gitlab.com/gitlab-org/terraform-images/stable:latest"
replicas = 1
runner_token = "xxxxxxxxxxxxxxx"
runner_tags = "production"
run_untagged = false
}
Name | Version |
---|---|
terraform | >= 1 |
aws | 5.15.0 |
helm | 2.4.1 |
kubernetes | 2.22.0 |
Name | Version |
---|---|
aws | 5.15.0 |
helm | 2.4.1 |
kubernetes | 2.22.0 |
Name | Type |
---|---|
helm_release.runner | resource |
kubernetes_namespace.ns | resource |
kubernetes_secret.secret | resource |
kubernetes_service_account.sa | resource |
aws_eks_cluster.cluster | data source |
aws_eks_cluster_auth.cluster | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
annotations | Annotations applied to all Kubernetes resources | map(string) |
{} |
no |
cluster_name | AWS EKS Cluster name | string |
n/a | yes |
create_namespace | Wether the module should create the namespace or not. | bool |
false |
no |
default_image | Default Gitlab Runner Job Docker image | string |
"" |
no |
labels | Labels applied to all Kubernetes resources | map(string) |
{} |
no |
locked | Wether the runner is locked to the project or group. | bool |
false |
no |
name | Name of the gitlab runner | string |
n/a | yes |
namespace | Kubernetes namespace name | string |
"gitlab-runner" |
no |
protected | Wether the runner only accepts protected jobs. | bool |
false |
no |
replicas | Number of Gitlab Runner replicas | number |
2 |
no |
role_arn | Role ARN that will be used by the Gitlab Runner jobs. | string |
n/a | yes |
run_untagged | If the Gitlab Runner will run untagged jobs | bool |
false |
no |
runner_tags | Comma separated list of runner tags | string |
n/a | yes |
runner_token | The Gitlab token to use for registering. | string |
n/a | yes |
No outputs.
We are Blackbird Cloud, Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.
Checkout our other 👉 terraform modules
Copyright © 2017-2024 Blackbird Cloud