Created
April 5, 2022 16:22
-
-
Save antigenius0910/23e9e2d9af08bd58c2eaf2197631482a to your computer and use it in GitHub Desktop.
create a Certificate with cert-manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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