Commit 8838cbf
fix(openshift): add ChatUI (HuggingChat) deployment with MongoDB support (vllm-project#637)
* fix(openshift): add ChatUI (HuggingChat) deployment with MongoDB support
Fixes vllm-project#635
## Problem
The dashboard /huggingchat endpoint was returning an error:
{"error":"HuggingChat not configured","message":"TARGET_CHATUI_URL environment variable is not set"}
This was because the OpenShift deployment was missing the ChatUI service
and the corresponding TARGET_CHATUI_URL environment variable in the
dashboard configuration.
## Solution
This commit adds complete ChatUI (HuggingChat) support to the OpenShift
deployment by:
1. **MongoDB Deployment** (deploy/openshift/mongo/):
- PersistentVolumeClaim for 5Gi data storage
- MongoDB 7 deployment with proper OpenShift security contexts
- Health checks using mongosh ping command
- ClusterIP service for internal access
- Comprehensive README with backup/recovery guidance
2. **ChatUI Deployment** (deploy/openshift/chatui/):
- HuggingFace ChatUI container (ghcr.io/huggingface/chat-ui-db:latest)
- Configured to use semantic-router backend for LLM inference
- MongoDB connection for data persistence
- OpenShift Route with TLS for external access
- Health probes for liveness and readiness
- Comprehensive README with troubleshooting guide
3. **Dashboard Configuration Update**:
- Added TARGET_CHATUI_URL="http://chatui:3000" to dashboard ConfigMap
- This environment variable is required by the dashboard backend
to configure the ChatUI proxy at /embedded/chatui/
## Components Added
**deploy/openshift/chatui/**:
- deployment.yaml: ChatUI deployment, service, and route
- README.md: Comprehensive documentation
**deploy/openshift/mongo/**:
- deployment.yaml: MongoDB deployment with PVC, service
- README.md: MongoDB administration and troubleshooting guide
## Technical Details
- **ChatUI** connects to semantic-router at port 8801 for LLM inference
- **MongoDB** provides data persistence for ChatUI conversations
- **Dashboard** proxies ChatUI requests from /huggingchat to /embedded/chatui/
- All components use OpenShift-compatible security contexts:
- allowPrivilegeEscalation: false
- capabilities dropped
- seccompProfile: RuntimeDefault
## Testing
After deployment, HuggingChat will be accessible at:
- Dashboard integration: https://<dashboard-route>/huggingchat
- Direct access: https://<chatui-route>
## Next Steps
The deploy-to-openshift.sh script needs to be updated to include these
new components in the automated deployment process.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: szedan <[email protected]>
* fix(openshift): update MongoDB image and deployment script for ChatUI
This commit completes the ChatUI/HuggingChat integration for OpenShift by:
## Changes
1. **MongoDB Image Fix** (deploy/openshift/mongo/deployment.yaml):
- Changed image from `mongo:7` to `docker.io/library/mongo:7`
- Fixes ImagePullBackOff error caused by private registry redirect
- Removed `fsGroup: 999` from securityContext to comply with
OpenShift security context constraints
2. **Updated Deployment Script** (deploy/openshift/deploy-to-openshift.sh):
- Added MongoDB deployment step
- Added ChatUI deployment step
- Added Dashboard configuration with ChatUI integration
- Updated help output to include ChatUI access instructions
- Ensures automated deployment of all HuggingChat components
## Testing
Verified working on OpenShift cluster:
- MongoDB: 1/1 Running
- ChatUI: 1/1 Running
- Dashboard: Returns HTTP 200 for /huggingchat endpoint
- Test URL: https://dashboard-vllm-semantic-router-system.apps.cluster-94lzc.94lzc.sandbox732.opentlc.com/huggingchat
Fixes vllm-project#635
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: szedan <[email protected]>
* fix(docs): add blank lines around fenced code blocks for markdown lint
Signed-off-by: szedan <[email protected]>
---------
Signed-off-by: szedan <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent 5ec9f43 commit 8838cbf
File tree
6 files changed
+550
-0
lines changed- deploy/openshift
- chatui
- dashboard
- mongo
6 files changed
+550
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
220 | 235 | | |
221 | 236 | | |
222 | 237 | | |
| |||
397 | 412 | | |
398 | 413 | | |
399 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
0 commit comments