GitXplorerGitXplorer
a

terraform-cert-manager

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
723e5dc245aed415b221ebd321346ec7fe82e2ec

Update README.md

aa0s committed 4 years ago
Unverified
860b83362df78a58f1e5cee7742a8b9b02d067f8

initial

aa0s committed 4 years ago

README

The README file for this repository.

Terraform ready cert-manager

Usage

module "cert_manager" {
  source = "./cert-manager"

  providers = {
    kubernetes = kubernetes
    kubernetes-alpha = kubernetes-alpha
  }
}


resource "kubectl_manifest" "cert_manager_cluster_issuer" {
  depends_on = [module.cert_manager]
  yaml_body = <<YAML
    apiVersion: cert-manager.io/v1
    kind: ClusterIssuer
    metadata:
      name: letsencrypt
    spec:
      acme:
        email: my@email
        server: https://acme-v02.api.letsencrypt.org/directory
        preferredChain: "ISRG Root X1"
        privateKeySecretRef:
          name: letsencrypt
        solvers:
          - http01:
              ingress:
                class: nginx
YAML
}

Building

  1. generate with

    tfk8s --strip --file cert-manager_v1.2.0.yaml --output cert-manager_v1.2.0.tf --provider "kubernetes-alpha"
  2. replace "namespace" = "cert-manager" with "namespace" = kubernetes_manifest.namespace_cert_manager.manifest.metadata.name