Add cert-manager

This commit is contained in:
Micke Nordin 2024-11-21 11:17:40 +01:00
parent 21401f0490
commit 50d2d1047c
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -6,6 +6,8 @@ metadata:
namespace: portal namespace: portal
annotations: annotations:
kubernetes.io/ingress.class: nginx kubernetes.io/ingress.class: nginx
cert-manager.io/issuer: "letsencrypt"
acme.cert-manager.io/http01-edit-in-place: "true"
spec: spec:
defaultBackend: defaultBackend:
service: service: