Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antigenius0910/23e9e2d9af08bd58c2eaf2197631482a to your computer and use it in GitHub Desktop.
Save antigenius0910/23e9e2d9af08bd58c2eaf2197631482a to your computer and use it in GitHub Desktop.
create a Certificate with cert-manager
resource "kubernetes_manifest" "k8s-wildcard-cert" {
depends_on = [
kubectl_manifest.origin-ca-issuer
]
manifest = {
"apiVersion" = "cert-manager.io/v1"
"kind" = "Certificate"
"metadata" = {
name = "k8s-wildcard-cert"
namespace = "istio-system"
}
"spec" = {
"dnsNames" = [
"k8s.test.com"
]
"duration" = "168h"
"duration" = "24h0m0s"
"issuerRef" = {
"name" = "prod-issuer"
"kind" = "OriginIssuer"
"group" = "cert-manager.k8s.cloudflare.com"
}
"secretName" = "k8s-wildcard-cert"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment