mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Merge pull request #286 from askervin/kustomize
qat_plugin: add kustomizations
This commit is contained in:
commit
f036b72cff
@ -56,9 +56,9 @@ The QAT plugin can take a number of command line arguments, summarised in the fo
|
|||||||
| -max-num-devices | int | maximum number of QAT devices to be provided to the QuickAssist device plugin (default: `32`) |
|
| -max-num-devices | int | maximum number of QAT devices to be provided to the QuickAssist device plugin (default: `32`) |
|
||||||
| -mode | string | plugin mode which can be either `dpdk` or `kernel` (default: `dpdk`) |
|
| -mode | string | plugin mode which can be either `dpdk` or `kernel` (default: `dpdk`) |
|
||||||
|
|
||||||
The example [DaemonSet YAML](../../deployments/qat_plugin/qat_plugin.yaml) passes a number of these
|
The example [DaemonSet YAML](../../deployments/qat_plugin/base/intel-qat-plugin.yaml) passes a number of these
|
||||||
arguments, and takes its default values from the
|
arguments, and takes its default values from the
|
||||||
[QAT default ConfigMap](../../deployments/qat_plugin/qat_plugin_default_configmap.yaml). The following
|
[QAT default ConfigMap](../../deployments/qat_plugin/base/intel-qat-plugin-config.yaml). The following
|
||||||
table summarises the defaults:
|
table summarises the defaults:
|
||||||
|
|
||||||
| Argument | Variable | Default setting | Explanation |
|
| Argument | Variable | Default setting | Explanation |
|
||||||
@ -68,7 +68,7 @@ table summarises the defaults:
|
|||||||
| -kernel-vf-drivers | `$KERNEL_VF_DRIVERS` | dh895xccvf,c6xxvf,c3xxxvf,d15xxvf | Modify to suit your hardware setup |
|
| -kernel-vf-drivers | `$KERNEL_VF_DRIVERS` | dh895xccvf,c6xxvf,c3xxxvf,d15xxvf | Modify to suit your hardware setup |
|
||||||
| -max-num-devices | `$MAX_NUM_DEVICES` | 32 | Modify to suit your hardware setup if necessary |
|
| -max-num-devices | `$MAX_NUM_DEVICES` | 32 | Modify to suit your hardware setup if necessary |
|
||||||
|
|
||||||
For more details on the `-dpdk-driver` choice, see
|
For more details on the `-dpdk-driver` choice, see
|
||||||
[DPDK Linux Driver Guide](http://dpdk.org/doc/guides/linux_gsg/linux_drivers.html).
|
[DPDK Linux Driver Guide](http://dpdk.org/doc/guides/linux_gsg/linux_drivers.html).
|
||||||
|
|
||||||
For more details on the available options to the `-kernel-vf-drivers` option, see the list of
|
For more details on the available options to the `-kernel-vf-drivers` option, see the list of
|
||||||
@ -106,7 +106,7 @@ tag by default. If you do not build your own local images, your Kubernetes clust
|
|||||||
the devel images from the Docker hub by default.
|
the devel images from the Docker hub by default.
|
||||||
|
|
||||||
To use the release tagged versions of the images, edit the
|
To use the release tagged versions of the images, edit the
|
||||||
[YAML deployment files](../../deployments/qat_plugin/)
|
[YAML deployment files](../../deployments/qat_plugin/base/)
|
||||||
appropriately.
|
appropriately.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
@ -124,7 +124,7 @@ are available via two methods. One of them must be installed and enabled:
|
|||||||
|
|
||||||
The demonstrations have their own requirements, listed in their own specific sections.
|
The demonstrations have their own requirements, listed in their own specific sections.
|
||||||
|
|
||||||
## Getting the source code:
|
## Getting the source code
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ go get -d -u https://github.com/intel/intel-device-plugins-for-kubernetes
|
$ go get -d -u https://github.com/intel/intel-device-plugins-for-kubernetes
|
||||||
@ -165,14 +165,26 @@ Successfully tagged intel/intel-qat-plugin:devel
|
|||||||
|
|
||||||
### Deploy the DaemonSet
|
### Deploy the DaemonSet
|
||||||
|
|
||||||
Deploying the plugin involves deployment of both a
|
Deploying the plugin involves first the deployment of a
|
||||||
[ConfigMap](../../deployments/qat_plugin/qat_plugin_default_configmap.yaml) and the
|
[ConfigMap](../../deployments/qat_plugin/base/intel-qat-plugin-config.yaml) and the
|
||||||
[DaemonSet YAML](../../deployments/qat_plugin/qat_plugin.yaml):
|
[DaemonSet YAML](../../deployments/qat_plugin/base/intel-qat-plugin.yaml).
|
||||||
|
|
||||||
|
There is a kustomization for deploying both:
|
||||||
```bash
|
```bash
|
||||||
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
|
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
|
||||||
kubectl create -f deployments/qat_plugin/qat_plugin_default_configmap.yaml
|
$ kubectl apply -k deployments/qat_plugin
|
||||||
kubectl create -f deployments/qat_plugin/qat_plugin.yaml
|
```
|
||||||
|
and an alternative kustomization for deploying the plugin in the debug mode:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ kubectl apply -k deployments/qat_plugin/overlays/debug
|
||||||
|
```
|
||||||
|
|
||||||
|
The third option is to deploy the `yaml`s separately:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ kubectl create -f deployments/qat_plugin/base/intel-qat-plugin-config.yaml
|
||||||
|
$ kubectl create -f deployments/qat_plugin/base/intel-qat-plugin.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: It is also possible to run the QAT device plugin using a non-root user. To do this,
|
> **Note**: It is also possible to run the QAT device plugin using a non-root user. To do this,
|
||||||
|
3
deployments/qat_plugin/base/kustomization.yaml
Normal file
3
deployments/qat_plugin/base/kustomization.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
resources:
|
||||||
|
- intel-qat-plugin.yaml
|
||||||
|
- intel-qat-plugin-config.yaml
|
2
deployments/qat_plugin/kustomization.yaml
Normal file
2
deployments/qat_plugin/kustomization.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bases:
|
||||||
|
- base
|
8
deployments/qat_plugin/overlays/debug/kustomization.yaml
Normal file
8
deployments/qat_plugin/overlays/debug/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
nameSuffix: -debug
|
||||||
|
bases:
|
||||||
|
- ../../base
|
||||||
|
configMapGenerator:
|
||||||
|
- name: intel-qat-plugin-config
|
||||||
|
behavior: merge
|
||||||
|
literals:
|
||||||
|
- DEBUG="true"
|
Loading…
Reference in New Issue
Block a user