diff --git a/cert-manager/overlays/test/cert-manager-issuer-prod.yml b/cert-manager/overlays/test/cert-manager-issuer-prod.yml new file mode 100644 index 0000000..df23df0 --- /dev/null +++ b/cert-manager/overlays/test/cert-manager-issuer-prod.yml @@ -0,0 +1,18 @@ +apiVersion: cert-manager.io/v1 +kind: Issuer +metadata: + name: letsencrypt-prod +spec: + acme: + # The ACME server URL + server: https://acme-v02.api.letsencrypt.org/directory + # Email address used for ACME registration + email: kano@sunet.se + # Name of a secret used to store the ACME account private key + privateKeySecretRef: + name: letsencrypt-prod + # Enable the HTTP-01 challenge provider + solvers: + - http01: + ingress: + ingressClassName: nginx diff --git a/cert-manager/overlays/test/cert-manager-issuer-staging.yml b/cert-manager/overlays/test/cert-manager-issuer-staging.yml new file mode 100644 index 0000000..4b40b18 --- /dev/null +++ b/cert-manager/overlays/test/cert-manager-issuer-staging.yml @@ -0,0 +1,18 @@ +apiVersion: cert-manager.io/v1 +kind: Issuer +metadata: + name: letsencrypt-staging +spec: + acme: + # The ACME server URL + server: https://acme-staging-v02.api.letsencrypt.org/directory + # Email address used for ACME registration + email: kano@sunet.se + # Name of a secret used to store the ACME account private key + privateKeySecretRef: + name: letsencrypt-staging + # Enable the HTTP-01 challenge provider + solvers: + - http01: + ingress: + ingressClassName: nginx diff --git a/cert-manager/overlays/test/kustomization.yaml b/cert-manager/overlays/test/kustomization.yaml index 4e4f197..31ad16c 100644 --- a/cert-manager/overlays/test/kustomization.yaml +++ b/cert-manager/overlays/test/kustomization.yaml @@ -2,3 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../../base +patches: +- path: cert-manager-issuer-staging.yml +- path: cert-manager-issuer-prod.yml