mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Edits for format and text flow.
Signed-off-by: MCamp859 <mary.camp@ptiglobal.net>
This commit is contained in:
parent
5bb12f515a
commit
f3f749d4f5
@ -1,25 +1,25 @@
|
||||
# Build and test Intel GPU Device Plugin for Kubernetes
|
||||
# Build and test Intel GPU device plugin for Kubernetes
|
||||
|
||||
### Get source code
|
||||
### Get source code: ZZZ H3 *(as it was)*
|
||||
```
|
||||
$ mkdir -p $GOPATH/src/github.com/intel/
|
||||
$ cd $GOPATH/src/github.com/intel/
|
||||
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes.git
|
||||
```
|
||||
|
||||
### Build GPU device plugin
|
||||
#### Build GPU device plugin: ZZZ H4 my **change**
|
||||
```
|
||||
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
|
||||
$ make gpu_plugin
|
||||
```
|
||||
|
||||
### Make sure kubelet socket exists in /var/lib/kubelet/device-plugins/
|
||||
#### Verify kubelet socket exists in /var/lib/kubelet/device-plugins/ directory:
|
||||
```
|
||||
$ ls /var/lib/kubelet/device-plugins/kubelet.sock
|
||||
/var/lib/kubelet/device-plugins/kubelet.sock
|
||||
```
|
||||
|
||||
### Run GPU device plugin as administrator
|
||||
#### Run GPU device plugin as administrator:
|
||||
```
|
||||
$ sudo $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/gpu_plugin/gpu_plugin
|
||||
GPU device plugin started
|
||||
@ -32,23 +32,22 @@ device-plugin: ListAndWatch start
|
||||
ListAndWatch: send devices &ListAndWatchResponse{Devices:[&Device{ID:card0,Health:Healthy,}],}
|
||||
```
|
||||
|
||||
### Check if GPU device plugin is registered on master
|
||||
#### Verify GPU device plugin is registered on master:
|
||||
```
|
||||
$ kubectl describe node <node name> | grep intel.com/gpu
|
||||
intel.com/gpu: 1
|
||||
intel.com/gpu: 1
|
||||
```
|
||||
|
||||
### Test GPU device plugin
|
||||
#### Test GPU device plugin:
|
||||
|
||||
1. Build a Docker image with beignet unit tests:
|
||||
|
||||
```
|
||||
$ cd demo
|
||||
$ ./build-image.sh ubuntu-demo-opencl
|
||||
```
|
||||
|
||||
This command will produce a Docker image named `ubuntu-demo-opencl`.
|
||||
This command produces a Docker image named `ubuntu-demo-opencl`.
|
||||
|
||||
2. Create a pod running unit tests off the local Docker image:
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user