mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-01 12:45:00 +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"
|
|
# }
|