@@ -18,28 +18,46 @@ spec:
1818 - name : dashboard
1919 image : ghcr.io/vllm-project/semantic-router/dashboard:latest
2020 imagePullPolicy : IfNotPresent
21- args : ["-port=8700", "-static=/app/frontend"]
21+ args : ["-port=8700", "-static=/app/frontend", "-config=/app/config/config.yaml" ]
2222 env :
2323 - name : TARGET_GRAFANA_URL
24- value : http://grafana.vllm-semantic-router-system.svc.cluster.local:3000
24+ valueFrom :
25+ configMapKeyRef :
26+ name : semantic-router-dashboard-config
27+ key : TARGET_GRAFANA_URL
2528 - name : TARGET_PROMETHEUS_URL
26- value : http://prometheus.vllm-semantic-router-system.svc.cluster.local:9090
29+ valueFrom :
30+ configMapKeyRef :
31+ name : semantic-router-dashboard-config
32+ key : TARGET_PROMETHEUS_URL
2733 - name : TARGET_ROUTER_API_URL
28- value : http://semantic-router.vllm-semantic-router-system.svc.cluster.local:8080
34+ valueFrom :
35+ configMapKeyRef :
36+ name : semantic-router-dashboard-config
37+ key : TARGET_ROUTER_API_URL
2938 - name : TARGET_ROUTER_METRICS_URL
30- value : http://semantic-router.vllm-semantic-router-system.svc.cluster.local:9190/metrics
39+ valueFrom :
40+ configMapKeyRef :
41+ name : semantic-router-dashboard-config
42+ key : TARGET_ROUTER_METRICS_URL
3143 - name : TARGET_OPENWEBUI_URL
32- value : " "
44+ valueFrom :
45+ configMapKeyRef :
46+ name : semantic-router-dashboard-config
47+ key : TARGET_OPENWEBUI_URL
48+ - name : ROUTER_CONFIG_PATH
49+ value : /app/config/config.yaml
3350 ports :
3451 - name : http
3552 containerPort : 8700
3653 volumeMounts :
37- - name : frontend
38- mountPath : /app/frontend
54+ - name : router-config
55+ mountPath : /app/config
56+ readOnly : true
3957 volumes :
40- - name : frontend
58+ - name : router-config
4159 configMap :
42- name : semantic-router-dashboard-frontend
60+ name : semantic-router-config
4361---
4462apiVersion : v1
4563kind : Service
@@ -59,14 +77,24 @@ spec:
5977apiVersion : v1
6078kind : ConfigMap
6179metadata :
62- name : semantic-router-dashboard-frontend
80+ name : semantic-router-dashboard-config
6381data :
64- index.html : |
65- <!doctype html>
66- <html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Semantic Router Dashboard</title></head>
67- <body>
68- <script>
69- // Fallback page that redirects to container-mounted frontend if available
70- window.location.replace('/');
71- </script>
72- </body></html>
82+ TARGET_GRAFANA_URL : http://grafana.vllm-semantic-router-system.svc.cluster.local:3000
83+ TARGET_PROMETHEUS_URL : http://prometheus.vllm-semantic-router-system.svc.cluster.local:9090
84+ TARGET_ROUTER_API_URL : http://semantic-router.vllm-semantic-router-system.svc.cluster.local:8080
85+ TARGET_ROUTER_METRICS_URL : http://semantic-router.vllm-semantic-router-system.svc.cluster.local:9190/metrics
86+ TARGET_OPENWEBUI_URL : " "
87+
88+ ---
89+ apiVersion : v1
90+ kind : ConfigMap
91+ metadata :
92+ name : semantic-router-config
93+ data :
94+ # Minimal config.yaml to let /api/router/config/all return something.
95+ # Replace with your real configuration or mount a different ConfigMap/Secret.
96+ config.yaml : |
97+ default_model: example-model
98+ default_reasoning_effort: medium
99+ vllm_endpoints: []
100+ model_config: {}
0 commit comments