fix argocd ingressroute & set catch all whoami ingressroute with higher priority

This commit is contained in:
Mans Ziesel 2024-10-25 19:32:35 +02:00
parent 925ee5517a
commit b4b90e06c0
3 changed files with 18 additions and 6 deletions

View File

@ -1,12 +1,21 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: argo-cd-ingressroute
name: argocd-server
namespace: argocd
spec:
routes:
- match: Host(`argocd.mziesel.nl`)
kind: Rule
- kind: Rule
match: Host(`argocd.mziesel.nl`)
priority: 10
services:
- name: argocd-server
port: 443
port: 80
- kind: Rule
match: Host(`argocd.mziesel.nl`) && Header(`Content-Type`, `application/grpc`)
priority: 11
services:
- name: argocd-server
port: 80
scheme: h2c
tls: {}

View File

@ -5,5 +5,6 @@ namespace: argocd
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/ha/install.yaml
- base/argo-cd-ingressroute.yaml
- base/argo-cd-namespace.yaml
- base/argo-cd-app-of-apps.yaml

View File

@ -19,6 +19,7 @@ spec:
routes:
- match: HostRegexp(`.*`)
kind: Rule
priority: 9999
services:
- name: whoami
port: web
@ -31,6 +32,7 @@ spec:
routes:
- match: HostRegexp(`.*`)
kind: Rule
priority: 9999
services:
- name: whoami
port: web