Skip to content

Commit

Permalink
Refactor tls.tf to add cert-manager module
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlahbib committed Nov 17, 2024
1 parent fde4c00 commit 9c4e196
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions terraform/tls.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
resource "kubernetes_namespace" "cert_manager" {
metadata {
name = "cert-manager"
labels = {
"name" = "cert-manager"
}
}
}


module "cert_manager" {
source = "terraform-iaac/cert-manager/kubernetes"
cluster_issuer_email = var.CLOUDFLARE_EMAIL
cluster_issuer_name = "letsencrypt-prod"
cluster_issuer_private_key_secret_name = "letsencrypt-prod-key"
namespace = "cert-manager"
create_namespace = true

name = "cert-manager"
chart = "https://charts.jetstack.io"
target_revision = "v1.15.2"

install_crd = true
create_ingress = false
}


Expand Down

0 comments on commit 9c4e196

Please sign in to comment.