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
f3f749d4f5
commit
fb5e20c14a
@ -1,25 +1,25 @@
|
||||
# Build and test Intel GPU device plugin for Kubernetes
|
||||
|
||||
### Get source code: ZZZ H3 *(as it was)*
|
||||
### Get source code:
|
||||
```
|
||||
$ 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: ZZZ H4 my **change**
|
||||
### Build GPU device plugin:
|
||||
```
|
||||
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
|
||||
$ make gpu_plugin
|
||||
```
|
||||
|
||||
#### Verify kubelet socket exists in /var/lib/kubelet/device-plugins/ directory:
|
||||
### 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,14 +32,14 @@ device-plugin: ListAndWatch start
|
||||
ListAndWatch: send devices &ListAndWatchResponse{Devices:[&Device{ID:card0,Health:Healthy,}],}
|
||||
```
|
||||
|
||||
#### Verify 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:
|
||||
```
|
||||
@ -54,7 +54,7 @@ $ kubectl describe node <node name> | grep intel.com/gpu
|
||||
$ kubectl apply -f demo/intelgpu_job.yaml
|
||||
```
|
||||
|
||||
3. Observe the pod's logs:
|
||||
3. Review the pod's logs:
|
||||
```
|
||||
$ kubectl logs intelgpu-demo-job-xxxx
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user