big-football-5446
11/28/2023, 11:11 PMserver {
listen 8083;
location / {
proxy_pass <http://localhost:1234>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Is there some environment variable or something I can set somewhere so that the ui tries 1234 instead of 8083?
Ive tried setting METAFLOW_SERVICE_PROXY="<http://127.0.0.1:1234>" on the k8s that runs the ui backend but no luck.
Thanks for the helpbrave-lion-15961
11/28/2023, 11:34 PMbig-football-5446
11/28/2023, 11:36 PMui_backend_service command in k8s deploymentbrave-lion-15961
11/28/2023, 11:38 PMyarn start for the metaflow-ui service?big-football-5446
11/28/2023, 11:39 PM#!/bin/bash
source /repo/ui_config.env
ui_backend_service
the sourced config file exports that env varbrave-lion-15961
11/28/2023, 11:50 PMREACT_APP_METAFLOW_SERVICE ?big-football-5446
11/28/2023, 11:51 PMbrave-lion-15961
11/28/2023, 11:51 PMmetaflow-ui service. This is the service that runs the UI.brave-lion-15961
11/28/2023, 11:53 PMmetaflow-service ui_backend_service and the metaflow-ui service that talks to the ui_backend_service through the API that you are configuringbig-football-5446
11/29/2023, 12:00 AMmetaflow-ui from?brave-lion-15961
11/29/2023, 12:06 AMaverage-beach-28850
11/29/2023, 12:13 AMbig-football-5446
11/29/2023, 12:32 AM# Install UI front-end
ENV UI_ENABLED=1
ENV UI_VERSION=v1.3.5
ENV REACT_APP_METAFLOW_SERVICE="<http://127.0.0.1:1234>"
RUN UI_ENABLED=$UI_ENABLED UI_VERSION=$UI_VERSION REACT_APP_METAFLOW_SERVICE=$REACT_APP_METAFLOW_SERVICE /repo/services/ui_backend_service/download_ui.shaverage-beach-28850
11/29/2023, 12:37 AMbig-football-5446
11/29/2023, 1:00 AMaverage-beach-28850
11/29/2023, 1:03 AMbig-football-5446
12/05/2023, 12:44 AM[Errno 2] No such file or directory: '/repo/metaflow-service/services/ui_backend_service/ui/index.html'
How do I tell the ui_backend to load from the ui_frontend container? Or should I be hitting the ui_frontend first and then redirecting to the backend for api calls?average-beach-28850
12/05/2023, 3:35 AM