From e576aa7d638de2829fa3305d22af570afaf6bd0e Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 16 Oct 2024 17:08:33 +0200 Subject: [PATCH] try again --- .../overlays/test/argocd-ingress.yaml | 45 ++++++++++++------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/argocd-nginx/overlays/test/argocd-ingress.yaml b/argocd-nginx/overlays/test/argocd-ingress.yaml index e5c2efb..804488e 100644 --- a/argocd-nginx/overlays/test/argocd-ingress.yaml +++ b/argocd-nginx/overlays/test/argocd-ingress.yaml @@ -1,19 +1,30 @@ -apiVersion: cert-manager.io/v1 -kind: Issuer +apiVersion: networking.k8s.io/v1 +kind: Ingress metadata: - name: letsencrypt + name: argocd-ingress + namespace: argocd + annotations: + cert-manager.io/issuer: "letsencrypt" + acme.cert-manager.io/http01-edit-in-place: "true" spec: - acme: - # The ACME server URL - server: https://acme-v02.api.letsencrypt.org/directory - # Email address used for ACME registration - email: drive@sunet.se - # Name of a secret used to store the ACME account private key - privateKeySecretRef: - name: letsencrypt - # Enable the HTTP-01 challenge provider - solvers: - - http01: - ingress: - name: argocd-ingress - + defaultBackend: + service: + name: argocd-server + port: + number: 80 + ingressClassName: nginx + tls: + - hosts: + - argocd-test.streams.sunet.se + secretName: argocd-tls-secret + rules: + - host: argocd-test.streams.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80