From 2de3113840f5775bdfbf4ea26645560a7c238ad0 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 31 Mar 2023 07:44:21 +0200 Subject: [PATCH] Add argocd ingress as separate app --- argocd-ingress/base/argocd-ingress.yaml | 31 +++++++++++++++++++ argocd-ingress/base/kustomization.yaml | 2 ++ .../overlays/test/argocd-ingress.yaml | 31 +++++++++++++++++++ .../overlays/test/kustomization.yaml | 6 ++++ 4 files changed, 70 insertions(+) create mode 100644 argocd-ingress/base/argocd-ingress.yaml create mode 100644 argocd-ingress/base/kustomization.yaml create mode 100644 argocd-ingress/overlays/test/argocd-ingress.yaml create mode 100644 argocd-ingress/overlays/test/kustomization.yaml diff --git a/argocd-ingress/base/argocd-ingress.yaml b/argocd-ingress/base/argocd-ingress.yaml new file mode 100644 index 0000000..cffdf8f --- /dev/null +++ b/argocd-ingress/base/argocd-ingress.yaml @@ -0,0 +1,31 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-ingress + namespace: argocd + annotations: + kubernetes.io/ingress.class: traefik + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + defaultBackend: + service: + name: argocd-server + port: + number: 8443 + tls: + - hosts: + - argocd.drive.test.sunet.se + secretName: tls-secret + + rules: + - host: argocd.drive.test.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 diff --git a/argocd-ingress/base/kustomization.yaml b/argocd-ingress/base/kustomization.yaml new file mode 100644 index 0000000..6802995 --- /dev/null +++ b/argocd-ingress/base/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - argocd-ingress.yaml diff --git a/argocd-ingress/overlays/test/argocd-ingress.yaml b/argocd-ingress/overlays/test/argocd-ingress.yaml new file mode 100644 index 0000000..cffdf8f --- /dev/null +++ b/argocd-ingress/overlays/test/argocd-ingress.yaml @@ -0,0 +1,31 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-ingress + namespace: argocd + annotations: + kubernetes.io/ingress.class: traefik + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + defaultBackend: + service: + name: argocd-server + port: + number: 8443 + tls: + - hosts: + - argocd.drive.test.sunet.se + secretName: tls-secret + + rules: + - host: argocd.drive.test.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 diff --git a/argocd-ingress/overlays/test/kustomization.yaml b/argocd-ingress/overlays/test/kustomization.yaml new file mode 100644 index 0000000..507859f --- /dev/null +++ b/argocd-ingress/overlays/test/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: 'kustomize.config.k8s.io/v1beta1' +kind: Kustomization +bases: +- ../../base +patchesStrategicMerge: + - argocd-ingress.yaml