fix argocd ingressroute & set catch all whoami ingressroute with higher priority
This commit is contained in:
parent
925ee5517a
commit
b4b90e06c0
@ -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
|
||||
services:
|
||||
- name: argocd-server
|
||||
port: 443
|
||||
- kind: Rule
|
||||
match: Host(`argocd.mziesel.nl`)
|
||||
priority: 10
|
||||
services:
|
||||
- name: argocd-server
|
||||
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: {}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user