Deploy HAMi WebUI using Helm Charts
This section describes how to deploy and run HAMi WebUI on a Kubernetes cluster using Helm charts.
HAMi WebUI is exposed via localhost only. After deployment, you need to configure your local ~/.kube/config file to connect to the target cluster and access the WebUI.
The official repository provides the Helm chart for deploying HAMi WebUI: https://github.com/Project-HAMi/HAMi-WebUI/tree/main/charts/hami-webui
If you encounter any issues, please open an issue in the HAMi-WebUI repository.
Prerequisites
Before you install HAMi WebUI with Helm, ensure the following:
-
kubectl on your local machine
-
HAMi >= 2.4.0
-
Prometheus > 2.8.0
-
Helm > 3.0
Install HAMi WebUI using Helm
Deploy the HAMi WebUI Helm chart
To add the HAMi WebUI Helm repository and install the chart on your machine, follow these steps:
-
Add the HAMi WebUI repository:
helm repo add hami-webui https://project-hami.github.io/HAMi-WebUI -
Install HAMi WebUI:
helm install my-hami-webui hami-webui/hami-webui --set externalPrometheus.enabled=true --set externalPrometheus.address="http://prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090" -n kube-systemImportant: Replace
externalPrometheus.addresswith the in-cluster Prometheus URL that your environment uses.You can set other values from values.yaml during installation; see the configuration documentation.
-
Verify the installation:
kubectl get pods -n kube-system | grep webuiIf the installation succeeded, you should see
hami-webuiandhami-webui-dcgm-exporter(and related pods) in a Running state.
Access HAMi WebUI
-
Configure
~/.kube/configon your local machine so kubectl can reach your cluster. -
Port-forward the HAMi WebUI Service to port
3000on your workstation:kubectl port-forward service/my-hami-webui 3000:3000 --namespace=kube-systemFor more information, see Use port forwarding to access applications in a cluster.
-
Open
http://localhost:3000in your browser.The HAMi WebUI resource overview page should appear.
Troubleshooting
This section lists tips that may help when you deploy HAMi WebUI on Kubernetes with Helm.
Collect logs
When troubleshooting, check the HAMi WebUI component logs.
Run:
kubectl logs --namespace=hami deploy/my-hami-webui -c hami-webui-fe-oss
kubectl logs --namespace=hami deploy/my-hami-webui -c hami-webui-be-oss
For more information, see Pods and Deployments.
Uninstall the HAMi WebUI deployment
To remove the Helm release, use:
helm uninstall <RELEASE-NAME> <NAMESPACE-NAME>
helm uninstall my-hami-webui -n hami
This removes the resources associated with that release in the hami namespace.
To delete the hami namespace (if you no longer need it):
kubectl delete namespace hami
Related documentation
After you can reach the WebUI, use these docs to learn the UI or contribute to development:
- HAMi WebUI User Guide: cluster overview, nodes, accelerators, workloads
- HAMi WebUI Developer Guide: architecture, repository layout, local development, and conventions