From bb05601c5c024bfa9cea0647944544b81246a81d Mon Sep 17 00:00:00 2001 From: Mikael Frykholm Date: Thu, 7 Nov 2024 15:04:33 +0100 Subject: [PATCH] Add cert-manager for rut-test. --- k8s/cert-manager.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 k8s/cert-manager.yaml diff --git a/k8s/cert-manager.yaml b/k8s/cert-manager.yaml new file mode 100644 index 0000000..c58ebaa --- /dev/null +++ b/k8s/cert-manager.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt-prod +spec: + acme: + # You must replace this email address with your own. + # Let's Encrypt will use this to contact you about expiring + # certificates, and issues related to your account. + email: mifr@sunet.se + server: https://acme-v02.api.letsencrypt.org/directory + privateKeySecretRef: + # Secret resource that will be used to store the account's private key. + name: letsencrypt-account-key + # Add a single challenge solver, HTTP01 using nginx + solvers: + - http01: + ingress: + class: public