For some cluster that don't have external web access, you can install HAMi by the following step:
-
Refer to README.md until step 'Install and Uninstall'
-
copy the source of project into the master node in your cluster, placed in a path like "/root/HAMi"
-
pull the following images and save them into a '.tar' file, then move it into the master node in your cluster
Image list:
4pdosc/k8s-vdevice:{HAMi version}
docker.io/jettech/kube-webhook-certgen:v1.5.2
liangjw/kube-webhook-certgen:v1.1.1
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:{your kubernetes version}
docker pull {iamge} && docker save {image_name} -o {image_name}.tar
- Load these images using docker load, tag these images with your registry, and push them into your registry
docker load -i {image_name}.tar
docker tag 4pdosc/k8s-vdevice:{HAMi version} {registry}/k8s-vdevice:{HAMi version}
docker push {registry}/k8s-vdevice:{HAMi version}
- edit the following field in /root/HAMi/chart/vgpu/values.yaml to your image pushed
scheduler.kubeScheduler.image
scheduler.extender.image
scheduler.patch.image
scheduler.patch.imageNew
scheduler.devicePlugin.image
scheduler.devicePlugin.monitorimage
- Execute the following command in your /root/HAMi/chart folder
helm install vgpu vgpu --set scheduler.kubeScheduler.imageTag={你的k8s server版本} -n kube-system
- Verify your installation
execute the following command
kubectl get pods -n kube-system
If you can see both the 'device-plugin' and 'schduler' running, then HAMi is installed successfully, as the figure shown below: