小亿 发布的文章

手动安装你驱动插件

安装驱动

版本号依据实际情况而定,具体参考:
Intel GPU device plugin for Kubernetes

k3s kubectl apply -n edgex -k 'https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd?ref=v0.30.0'
k3s kubectl apply -n edgex -k 'https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/node-feature-rules?ref=v0.30.0'
k3s kubectl apply -n edgex -k 'https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/gpu_plugin/overlays/monitoring_shared-dev_nfd/?ref=v0.30.0'

验证 pod 是否加载 GPU

出现 GPU 证明驱动工作正常。

[2024-09-18 05:58:58.529][2][serving][info][server.cpp:75] OpenVINO Model Server 2024.0.74d2a7cec
[2024-09-18 05:58:58.529][3][serving][info][server.cpp:76] OpenVINO backend 2024.0.0.14509.34caeefd078
[2024-09-18 05:58:58.529][4][serving][info][pythoninterpretermodule.cpp:35] PythonInterpreterModule starting
[2024-09-18 05:58:58.579][5][serving][info][pythoninterpretermodule.cpp:46] PythonInterpreterModule started
[2024-09-18 05:58:58.606][6][modelmanager][info][modelmanager.cpp:124] Available devices for Open VINO: CPU, GPU
[2024-09-18 05:58:58.606][7][serving][info][grpcservermodule.cpp:122] GRPCServerModule starting
[2024-09-18 05:58:58.607][8][serving][info][grpcservermodule.cpp:191] GRPCServerModule started
[2024-09-18 05:58:58.607][9][serving][info][grpcservermodule.cpp:192] Started gRPC server on port 9000
[2024-09-18 05:58:58.607][10][serving][info][httpservermodule.cpp:33] HTTPServerModule starting
[2024-09-18 05:58:58.607][11][serving][info][httpservermodule.cpp:37] Will start 48 REST workers
[evhttp_server.cc : 251] NET_LOG: Entering the event loop ...
[2024-09-18 05:58:58.608][12][serving][info][http_server.cpp:259] REST server listening on port 8000 with 48 threads
[2024-09-18 05:58:58.608][13][serving][info][httpservermodule.cpp:47] HTTPServerModule started
[2024-09-18 05:58:58.608][14][serving][info][httpservermodule.cpp:48] Started REST server at 0.0.0.0:8000
[2024-09-18 05:58:58.608][15][serving][info][servablemanagermodule.cpp:51] ServableManagerModule starting
[2024-09-18 05:58:58.609][16][modelmanager][info][modelmanager.cpp:535] Configuration file doesn't have custom node libraries property.
[2024-09-18 05:58:58.609][17][modelmanager][info][modelmanager.cpp:578] Configuration file doesn't have pipelines property.
[2024-09-18 05:58:58.609][18][modelmanager][info][modelmanager.cpp:552] Configuration file doesn't have mediapipe property.
[2024-09-18 05:58:58.609][19][serving][info][servablemanagermodule.cpp:55] ServableManagerModule started
[2024-09-18 05:58:58.609][101][modelmanager][info][modelmanager.cpp:1067] Started model manager thread
[2024-09-18 05:58:58.609][102][modelmanager][info][modelmanager.cpp:1086] Started cleaner thread

自动安装 plugins(通过 helm chart)

helm chart 仓库地址
Intel Helm Charts

增加 chart 仓库

helm repo add intel https://intel.github.io/helm-charts

查询仓库

helm search repo intel

选择需要的 chart 来执行

helm install intel-device-plugins-gpu intel/intel-device-plugins-gpu

卸载 chart

helm delete intel-device-plugins-gpu