diff --git a/argocd-ingress/overlays/test/argocd-ingress.yaml b/argocd-ingress/overlays/test/argocd-ingress.yaml index f5c968b..8f23892 100644 --- a/argocd-ingress/overlays/test/argocd-ingress.yaml +++ b/argocd-ingress/overlays/test/argocd-ingress.yaml @@ -11,7 +11,7 @@ spec: service: name: argocd-server port: - number: 8443 + number: 80 ingressClassName: traefik tls: - hosts: diff --git a/argocd-nginx/base/argocd-ingress.yaml b/argocd-nginx/base/argocd-ingress.yaml new file mode 100644 index 0000000..03d6e6d --- /dev/null +++ b/argocd-nginx/base/argocd-ingress.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-ingress + namespace: argocd +spec: + ingressClassName: nginx + 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: + name: https diff --git a/argocd-nginx/base/kustomization.yaml b/argocd-nginx/base/kustomization.yaml new file mode 100644 index 0000000..6802995 --- /dev/null +++ b/argocd-nginx/base/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - argocd-ingress.yaml diff --git a/argocd-nginx/overlays/dev/argocd-ingress.yaml b/argocd-nginx/overlays/dev/argocd-ingress.yaml new file mode 100644 index 0000000..cd0e885 --- /dev/null +++ b/argocd-nginx/overlays/dev/argocd-ingress.yaml @@ -0,0 +1,31 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-ingress + namespace: argocd + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + defaultBackend: + service: + name: argocd-server + port: + number: 8443 + ingressClassName: traefik + tls: + - hosts: + - argocd.drive.test.sunet.dev + secretName: tls-secret + + rules: + - host: argocd.drive.test.sunet.dev + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 diff --git a/argocd-nginx/overlays/dev/kustomization.yaml b/argocd-nginx/overlays/dev/kustomization.yaml new file mode 100644 index 0000000..f915e49 --- /dev/null +++ b/argocd-nginx/overlays/dev/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../../base +patches: +- path: argocd-ingress.yaml diff --git a/argocd-nginx/overlays/prod/argocd-ingress.yaml b/argocd-nginx/overlays/prod/argocd-ingress.yaml new file mode 100644 index 0000000..02fa337 --- /dev/null +++ b/argocd-nginx/overlays/prod/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.sunet.se + secretName: tls-secret + + rules: + - host: argocd.drive.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 diff --git a/argocd-nginx/overlays/prod/kustomization.yaml b/argocd-nginx/overlays/prod/kustomization.yaml new file mode 100644 index 0000000..f915e49 --- /dev/null +++ b/argocd-nginx/overlays/prod/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../../base +patches: +- path: argocd-ingress.yaml diff --git a/argocd-nginx/overlays/test/sunet/argocd-ingress.yaml b/argocd-nginx/overlays/test/sunet/argocd-ingress.yaml new file mode 100644 index 0000000..fca8e4e --- /dev/null +++ b/argocd-nginx/overlays/test/sunet/argocd-ingress.yaml @@ -0,0 +1,27 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-ingress + namespace: argocd +spec: + defaultBackend: + service: + name: argocd-server + port: + number: 80 + ingressClassName: nginx + tls: + - hosts: + - sunet-argocd.drive.test.sunet.se + secretName: tls-secret + rules: + - host: sunet-argocd.drive.test.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 diff --git a/argocd-nginx/overlays/test/sunet/kustomization.yaml b/argocd-nginx/overlays/test/sunet/kustomization.yaml new file mode 100644 index 0000000..1b88144 --- /dev/null +++ b/argocd-nginx/overlays/test/sunet/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: [../../../base] +patches: + - path: argocd-ingress.yaml diff --git a/health/overlays/sunet-test/health-ingress.yml b/health/overlays/sunet-test/health-ingress.yml new file mode 100644 index 0000000..845157e --- /dev/null +++ b/health/overlays/sunet-test/health-ingress.yml @@ -0,0 +1,30 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: health-ingress + namespace: health + annotations: + kubernetes.io/ingress.class: nginx +spec: + defaultBackend: + service: + name: health-node + port: + number: 8443 + ingressClassName: nginx + tls: + - hosts: + - sunet-kube.drive.test.sunet.se + secretName: tls-secret + rules: + - host: sunet-kube.drive.test.sunet.se + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: health-node + port: + number: 8080 diff --git a/health/overlays/sunet-test/kustomization.yaml b/health/overlays/sunet-test/kustomization.yaml new file mode 100644 index 0000000..d323ebf --- /dev/null +++ b/health/overlays/sunet-test/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../../base +patches: +- path: health-ingress.yml