diff --git a/argocd-nginx/base/argocd-ingress.yaml b/argocd-nginx/base/argocd-ingress.yaml index 5bf2a4c..0b26e3b 100644 --- a/argocd-nginx/base/argocd-ingress.yaml +++ b/argocd-nginx/base/argocd-ingress.yaml @@ -3,6 +3,8 @@ kind: Ingress metadata: name: argocd-ingress namespace: argocd + annotations: + cert-manager.io/issuer: "letsencrypt" spec: ingressClassName: nginx tls: diff --git a/cert-manager/base/cert-manager-issuer.yml b/argocd-nginx/base/cert-manager-issuer.yml similarity index 96% rename from cert-manager/base/cert-manager-issuer.yml rename to argocd-nginx/base/cert-manager-issuer.yml index 372774b..a09c522 100644 --- a/cert-manager/base/cert-manager-issuer.yml +++ b/argocd-nginx/base/cert-manager-issuer.yml @@ -1,5 +1,5 @@ apiVersion: cert-manager.io/v1 -kind: ClusterIssuer +kind: Issuer metadata: name: letsencrypt namespace: cert-manager diff --git a/argocd-nginx/base/kustomization.yaml b/argocd-nginx/base/kustomization.yaml index 6802995..6210811 100644 --- a/argocd-nginx/base/kustomization.yaml +++ b/argocd-nginx/base/kustomization.yaml @@ -1,2 +1,3 @@ resources: - argocd-ingress.yaml + - cert-manager-issuer.yml diff --git a/argocd-nginx/overlays/test/argocd-ingress.yaml b/argocd-nginx/overlays/test/argocd-ingress.yaml index 633b535..b766fcc 100644 --- a/argocd-nginx/overlays/test/argocd-ingress.yaml +++ b/argocd-nginx/overlays/test/argocd-ingress.yaml @@ -4,7 +4,7 @@ metadata: name: argocd-ingress namespace: argocd annotations: - cert-manager.io/cluster-issuer: "letsencrypt" + cert-manager.io/issuer: "letsencrypt" spec: defaultBackend: service: diff --git a/cert-manager/base/kustomization.yaml b/cert-manager/base/kustomization.yaml index 0fccc00..ee014cc 100644 --- a/cert-manager/base/kustomization.yaml +++ b/cert-manager/base/kustomization.yaml @@ -4,4 +4,3 @@ kind: Kustomization namespace: cert-manager resources: - https://github.com/cert-manager/cert-manager/releases/download/v1.16.1/cert-manager.yaml -- cert-manager-issuer.yml