Skip to content

Commit 17fded0

Browse files
committed
fix: 增加k8s常见下评估服务的路由
1 parent 54507c2 commit 17fded0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

deployment/helm/datamate/charts/frontend/templates/configmap.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ data:
2323
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2424
}
2525
26+
location /api/evaluation/ {
27+
proxy_pass http://datamate-backend-python:18000/api/evaluation/;
28+
proxy_set_header Host $host;
29+
proxy_set_header X-Real-IP $remote_addr;
30+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
31+
}
32+
2633
location /api/annotation/ {
2734
proxy_pass http://datamate-backend-python:18000/api/annotation/;
2835
proxy_set_header Host $host;
@@ -110,4 +117,4 @@ data:
110117
try_files $uri $uri/ /index.html;
111118
}
112119
}
113-
{{- end }}
120+
{{- end }}

0 commit comments

Comments
 (0)