From 44a33aee302242f9c6632dfd9e39fde5c98177f6 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 16 Oct 2024 09:37:58 +0200 Subject: [PATCH] Use cert-manager add-on --- cert-manager/base/kustomization.yaml | 6 ------ cert-manager/cluster-issuer.yaml | 20 +++++++++++++++++++ cert-manager/overlays/test/kustomization.yaml | 4 ---- 3 files changed, 20 insertions(+), 10 deletions(-) delete mode 100644 cert-manager/base/kustomization.yaml create mode 100644 cert-manager/cluster-issuer.yaml delete mode 100644 cert-manager/overlays/test/kustomization.yaml diff --git a/cert-manager/base/kustomization.yaml b/cert-manager/base/kustomization.yaml deleted file mode 100644 index ee014cc..0000000 --- a/cert-manager/base/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -namespace: cert-manager -resources: -- https://github.com/cert-manager/cert-manager/releases/download/v1.16.1/cert-manager.yaml diff --git a/cert-manager/cluster-issuer.yaml b/cert-manager/cluster-issuer.yaml new file mode 100644 index 0000000..8b2776d --- /dev/null +++ b/cert-manager/cluster-issuer.yaml @@ -0,0 +1,20 @@ +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt + namespace: kube-system +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: drive@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 diff --git a/cert-manager/overlays/test/kustomization.yaml b/cert-manager/overlays/test/kustomization.yaml deleted file mode 100644 index 4e4f197..0000000 --- a/cert-manager/overlays/test/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- ../../base