This terraform module will deploy cert-manager on any kubernetes cluster, using the official helm charts.
Helm Chart | Repo | Default Values |
---|---|---|
cert-manager | repo | values |
provider "kubernetes" {
config_path = "~/.kube/config"
}
provider "helm" {
kubernetes {
config_path = "~/.kube/config"
}
}
module "cert_manager" {
source = "boeboe/cert-manager/helm"
version = "0.0.1"
cert_manager_version = "1.10.0"
cert_manager_settings = {
"installCRDs" = "true"
"podAnnotations.custom\\.annotation\\.io" = "test"
"podAnnotations.environment" = "test"
}
}
output "cert_manager_helm_metadata" {
description = "block status of the cert-manager helm release"
value = module.cert_manager.cert_manager_helm_metadata[0]
}
Check the examples for more details.
Name | Description | Type | Default | Required |
---|---|---|---|---|
cert_manager_version | cert-manager version | string | - | true |
cert_manager_helm_namespace | cert-manager helm namespace | string | "cert-manager" | false |
cert_manager_helm_repo | cert-manager helm repository | string | "https://charts.jetstack.io" | false |
cert_manager_settings | cert-manager settings | map | {} | false |
Name | Description | Type |
---|---|---|
cert_manager_helm_metadata | block status of the cert-manager helm release | list |
Example output:
cert_manager_helm_metadata = {
"app_version" = "v1.10.0"
"chart" = "cert-manager"
"name" = "cert-manager"
"namespace" = "cert-manager"
"revision" = 1
"values" = "{\"installCRDs\":true,\"podAnnotations\":{\"custom.annotation.io\":\"test\",\"environment\":\"test\"}}"
"version" = "v1.10.0"
}
TBC
terraform-helm-cert-manager is released under the MIT License. See the bundled LICENSE file for details.