Add cert manager

Signed-off-by: Micke Nordin <kano@sunet.se>
This commit is contained in:
Micke Nordin 2024-11-06 15:56:30 +01:00
parent a6c7d4e2f0
commit 874f216848
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
3 changed files with 19 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

@ -1,2 +1,3 @@
resources:
- argocd-ingress.yaml
- argocd-cert-issuer.yaml

View file

@ -3,6 +3,9 @@ kind: Ingress
metadata:
name: argocd-ingress
namespace: argocd
annotations:
cert-manager.io/issuer: "letsencrypt"
acme.cert-manager.io/http01-edit-in-place: "true"
spec:
defaultBackend:
service: