Online Installation from Helm (Recommended)
The recommended way to deploy HAMi in a Kubernetes cluster is via the official Helm chart.
1. Add HAMi Helm Repository
Add the HAMi chart repository and update local repository cache:
helm repo add hami-charts https://project-hami.github.io/HAMi/
helm repo update
2. Deploy HAMi
Deploy HAMi into the kube-system namespace using Helm:
helm install hami hami-charts/hami -n kube-system
The Helm chart automatically detects your Kubernetes server version and pulls the matching kubeScheduler image. If you need to manually override the image tag (for example, in custom or air-gapped environments), you can pass --set scheduler.kubeScheduler.image.tag=<version>.
Customizing Helm Configurations
To customize or update an existing deployment, you can pass parameters with --set or provide a custom values.yaml file using helm upgrade:
helm upgrade hami hami-charts/hami -n kube-system -f custom-values.yaml
For a detailed breakdown of available chart options and configuration keys, see the Configuration Guide.
3. Verify Installation
Verify that the HAMi components (hami-device-plugin and hami-scheduler) are running correctly:
kubectl get pods -n kube-system | grep hami
If both hami-device-plugin and hami-scheduler pods are in the Running state, your installation is successful.