christianlempa-boilerplates/terraform/helm/certmanager.tf

32 lines
659 B
Terraform
Raw Normal View History

2022-03-16 17:54:10 +01:00
resource "kubernetes_namespace" "certmanager" {
metadata {
name = "certmanager"
}
}
resource "helm_release" "certmanager" {
depends_on = [kubernetes_namespace.certmanager]
name = "certmanager"
namespace = "certmanager"
repository = "https://charts.jetstack.io"
chart = "cert-manager"
# Install Kubernetes CRDs
set {
name = "installCRDs"
value = "true"
}
}
# (Optional) Create a Time-Sleep for Certificates and Issuer Manifests to deploy later
# resource "time_sleep" "wait_for_certmanager" {
#
# depends_on = [helm_release.certmanager]
#
# create_duration = "10s"
# }