diff --git a/portal/base/portal-cert-manager.yml b/portal/base/portal-cert-manager.yml new file mode 100644 index 0000000..bc70328 --- /dev/null +++ b/portal/base/portal-cert-manager.yml @@ -0,0 +1,15 @@ +apiVersion: cert-manager.io/v1 +kind: Issuer +metadata: + name: letsencrypt +spec: + acme: + server: https://acme-v02.api.letsencrypt.org/directory + email: drive@sunet.se + privateKeySecretRef: + name: letsencrypt + solvers: + - http01: + ingress: + class: nginx + diff --git a/portal/overlays/test/portal-ingress.yml b/portal/overlays/test/portal-ingress.yml index 42b7333..832369c 100644 --- a/portal/overlays/test/portal-ingress.yml +++ b/portal/overlays/test/portal-ingress.yml @@ -6,6 +6,8 @@ metadata: namespace: portal annotations: kubernetes.io/ingress.class: nginx + cert-manager.io/issuer: "letsencrypt" + acme.cert-manager.io/http01-edit-in-place: "true" spec: defaultBackend: service: