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
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: argo-cd-ingressroute
|
name: argocd-server
|
||||||
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`argocd.mziesel.nl`)
|
- kind: Rule
|
||||||
kind: Rule
|
match: Host(`argocd.mziesel.nl`)
|
||||||
services:
|
priority: 10
|
||||||
- name: argocd-server
|
services:
|
||||||
port: 443
|
- 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: {}
|
tls: {}
|
||||||
|
@ -5,5 +5,6 @@ namespace: argocd
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/ha/install.yaml
|
- 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-namespace.yaml
|
||||||
- base/argo-cd-app-of-apps.yaml
|
- base/argo-cd-app-of-apps.yaml
|
||||||
|
@ -19,6 +19,7 @@ spec:
|
|||||||
routes:
|
routes:
|
||||||
- match: HostRegexp(`.*`)
|
- match: HostRegexp(`.*`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
|
priority: 9999
|
||||||
services:
|
services:
|
||||||
- name: whoami
|
- name: whoami
|
||||||
port: web
|
port: web
|
||||||
@ -31,6 +32,7 @@ spec:
|
|||||||
routes:
|
routes:
|
||||||
- match: HostRegexp(`.*`)
|
- match: HostRegexp(`.*`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
|
priority: 9999
|
||||||
services:
|
services:
|
||||||
- name: whoami
|
- name: whoami
|
||||||
port: web
|
port: web
|
||||||
|
Loading…
Reference in New Issue
Block a user