Skip to content

Commit 50b4af0

Browse files
authored
Merge pull request #302 from alekdu/vpu_kustomization
vpu_plugin: add kustomizations
2 parents 332fbdc + 7c2bc3b commit 50b4af0

File tree

6 files changed

+24
-5
lines changed

6 files changed

+24
-5
lines changed

cmd/vpu_plugin/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* [Run the plugin as administrator](#run-the-plugin-as-administrator)
1515
* [Verify plugin registration](#verify-plugin-registration)
1616
* [Testing the plugin](#testing-the-plugin)
17+
* [Build a Docker image with an classification example](#build-a-docker-image-with-an-classification-example)
18+
* [Create a job running unit tests off the local Docker image](#create-a-job-running-unit-tests-off-the-local-docker-image)
19+
* [Review the job logs](#review-the-job-logs)
1720

1821
# Introduction
1922

@@ -84,10 +87,11 @@ Successfully tagged intel/intel-vpu-plugin:devel
8487

8588
### Deploy plugin DaemonSet
8689

87-
You can then use the example DaemonSet YAML file provided to deploy the plugin.
90+
You can then use the [example DaemonSet YAML](../../deployments/vpu_plugin/base/intel-vpu-plugin.yaml)
91+
file provided to deploy the plugin. The default kustomization that deploys the YAML as is:
8892

8993
```bash
90-
$ kubectl create -f ./deployments/vpu_plugin/vpu_plugin.yaml
94+
$ kubectl apply -k deployments/vpu_plugin
9195
daemonset.apps/intel-vpu-plugin created
9296
```
9397

@@ -152,7 +156,7 @@ $ kubectl apply -f demo/intelvpu-job.yaml
152156
job.batch/intelvpu-demo-job created
153157
```
154158

155-
### Review the job's logs
159+
### Review the job logs
156160

157161
```bash
158162
$ kubectl get pods | fgrep intelvpu

deployments/vpu_plugin/vpu_plugin.yaml renamed to deployments/vpu_plugin/base/intel-vpu-plugin.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: DaemonSet
33
metadata:
44
name: intel-vpu-plugin
5-
namespace: kube-system
65
labels:
76
app: intel-vpu-plugin
87
spec:
@@ -21,17 +20,20 @@ spec:
2120
valueFrom:
2221
fieldRef:
2322
fieldPath: spec.nodeName
24-
image: intel-vpu-plugin:devel
23+
image: intel/intel-vpu-plugin:devel
2524
imagePullPolicy: IfNotPresent
2625
securityContext:
2726
readOnlyRootFilesystem: true
2827
volumeMounts:
2928
- name: devfs
3029
mountPath: /dev/bus/usb
30+
readOnly: true
3131
- name: sysfs1
3232
mountPath: /sys/bus/usb
33+
readOnly: true
3334
- name: sysfs2
3435
mountPath: /sys/devices
36+
readOnly: true
3537
- name: tmpfs
3638
mountPath: /var/tmp
3739
- name: kubeletsockets
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- intel-vpu-plugin.yaml
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bases:
2+
- base
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: intel-vpu-plugin
5+
namespace: kube-system
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bases:
2+
- ../../base
3+
patches:
4+
- add-namespace-kube-system.yaml

0 commit comments

Comments
 (0)