mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-25 09:44:24 +01:00
32 lines
659 B
HCL
32 lines
659 B
HCL
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"
|
|
# }
|