Skip to content

Commit 6627748

Browse files
committed
feat(eodag-proxy): declare routes for API & proxy
1 parent 9294a1f commit 6627748

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

argocd/eoepca/data-proxy/parts/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ resources:
33
- stac-api.yaml
44
- ss-cs-container-pull.yaml
55
- opa-config.yaml
6+
- route.yaml
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: apisix.apache.org/v2
2+
kind: ApisixRoute
3+
metadata:
4+
name: data-proxy
5+
namespace: data-proxy
6+
# annotations:
7+
# argocd.argoproj.io/sync-options: skip
8+
spec:
9+
ingressClassName: apisix
10+
http:
11+
- name: stac-redirect
12+
websocket: true
13+
backends:
14+
- serviceName: stac-fastapi-eodag
15+
servicePort: 8080
16+
match:
17+
hosts:
18+
- eodag-api.develop.eoepca.org
19+
plugins:
20+
- name: redirect
21+
enable: true
22+
- name: stac-route
23+
websocket: true
24+
backends:
25+
- serviceName: stac-fastapi-eodag
26+
servicePort: 8080
27+
match:
28+
hosts:
29+
- eodag-api.develop.eoepca.org
30+
plugins:
31+
- name: cors
32+
enable: true
33+
34+
- name: proxy-redirect
35+
backends:
36+
- serviceName: eodag-data-proxy
37+
servicePort: 8880
38+
match:
39+
hosts:
40+
- eodag-proxy.develop.eoepca.org
41+
plugins:
42+
- name: redirect
43+
enable: true
44+
- name: proxy-route
45+
backends:
46+
- serviceName: eodag-data-proxy
47+
servicePort: 8880
48+
match:
49+
hosts:
50+
- eodag-proxy.develop.eoepca.org

0 commit comments

Comments
 (0)