apps/argocd/resources/http_routes.yaml

55 lines
1.1 KiB
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argo-cd-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- argocd.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argo-cd-https
spec:
parentRefs:
- name: contour
sectionName: argocd
namespace: projectcontour
hostnames:
- argocd.icb4dc0.de
rules:
- backendRefs:
- name: argo-cd-argocd-server
port: 443
---
apiVersion: gateway.networking.k8s.io/v1
kind: GRPCRoute
metadata:
name: argo-cd-grpc
spec:
parentRefs:
- name: contour
sectionName: argocd
namespace: projectcontour
hostnames:
- argocd.icb4dc0.de
rules:
- matches:
- headers:
- name: Content-Type
type: RegularExpression
value: .*application/grpc.*
backendRefs:
- name: argo-cd-argocd-server
port: 80