Skip to content

blackbird-cloud/terraform-aws-eks-gitlab-runner

Repository files navigation

Terraform Aws Eks Gitlab Runner Module

Terraform module to deploy Gitlab Runner on EKS

blackbird-logo

Example

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
}

Requirements

Name Version
terraform >= 1
aws 5.15.0
helm 2.4.1
kubernetes 2.22.0

Providers

Name Version
aws 5.15.0
helm 2.4.1
kubernetes 2.22.0

Resources

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

Inputs

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

Outputs

No outputs.

About

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

Copyright © 2017-2024 Blackbird Cloud

About

Terraform module to deploy Gitlab Runner on EKS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages