|
| 1 | +# EdgeCraft RAG Helm Chart |
| 2 | + |
| 3 | +This doc intrudoces the Helm chart for deploying EdgeCraft RAG (ecrag) on a Kubernetes cluster. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +- A running Kubernetes cluster. |
| 8 | +- Helm installed. |
| 9 | +- Required Docker images available in your registry or locally. |
| 10 | + |
| 11 | +## Configuration |
| 12 | + |
| 13 | +Before installing, you should configure the `edgecraftrag/values.yaml` file according to your environment. |
| 14 | + |
| 15 | +### Key Configurations |
| 16 | + |
| 17 | +1. **Images**: Set the registry and tag for `ecrag` and `vllm`. |
| 18 | + ```yaml |
| 19 | + image: |
| 20 | + ecrag: |
| 21 | + registry: <your-registry> |
| 22 | + tag: <your-tag> |
| 23 | + vllm: |
| 24 | + registry: <your-registry> |
| 25 | + tag: <your-tag> |
| 26 | + ``` |
| 27 | +
|
| 28 | +2. **Environment Variables**: Configure proxies and host IP. |
| 29 | + ```yaml |
| 30 | + env: |
| 31 | + http_proxy: "http://proxy:port" |
| 32 | + https_proxy: "http://proxy:port" |
| 33 | + HOST_IP: "<node-ip>" |
| 34 | + ``` |
| 35 | +
|
| 36 | +3. **LLM Settings**: Adjust LLM model paths and parameters. |
| 37 | + ```yaml |
| 38 | + llm: |
| 39 | + LLM_MODEL: "/path/to/model/inside/container" # Ensure this maps to paths.model |
| 40 | + ``` |
| 41 | +
|
| 42 | +4. **Persistant Paths**: Ensure the host paths exist for mounting. |
| 43 | + ```yaml |
| 44 | + paths: |
| 45 | + model: /home/user/models |
| 46 | + docs: /home/user/docs |
| 47 | + ``` |
| 48 | +
|
| 49 | +## Installation |
| 50 | +
|
| 51 | +To install the chart, please use below command (`edgecraftrag` as an example) |
| 52 | + |
| 53 | +```bash |
| 54 | +cd kubernetes/helm |
| 55 | +helm install edgecraftrag ./edgecraftrag |
| 56 | +``` |
| 57 | + |
| 58 | +If there're different clusters avaliable, please install the chart with specific kube config, e.g. : |
| 59 | + |
| 60 | +```bash |
| 61 | +helm install edgecraftrag ./edgecraftrag --kubeconfig /home/user/.kube/nas.yaml |
| 62 | +``` |
| 63 | + |
| 64 | +## Verification |
| 65 | + |
| 66 | +### Accessing the Web UI |
| 67 | + |
| 68 | +Once the service is running, you can access the UI via your browser. |
| 69 | + |
| 70 | +1. **Identify the Port**: |
| 71 | + Check the `nodePort` configured in the `edgecraftrag/values.yaml` file. This is the external access port. |
| 72 | + |
| 73 | +2. **Identify the IP**: |
| 74 | + Use the IP address of the Kubernetes node where the deployment is running. |
| 75 | + * If running on your local machine (e.g., MicroK8s), use `localhost` or your machine's LAN IP. |
| 76 | + * If running on a remote cluster, use that node's IP. |
| 77 | + |
| 78 | +3. **Open in Browser**: |
| 79 | + Navigate to `http://<NodeIP>:<NodePort>` |
| 80 | + > Example: `http://192.168.1.5:31234` |
| 81 | + |
| 82 | +## Uninstallation |
| 83 | + |
| 84 | +To uninstall/delete the `edgecraftrag` deployment: |
| 85 | + |
| 86 | +```bash |
| 87 | +helm uninstall edgecraftrag |
| 88 | +``` |
| 89 | + |
| 90 | +If there're different clusters avaliable, please uninstall the chart with specific kube config, e.g. : |
| 91 | + |
| 92 | +```bash |
| 93 | +helm uninstall edgecraftrag --kubeconfig /home/user/.kube/nas.yaml |
| 94 | +``` |
0 commit comments