-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkmm.yaml
42 lines (41 loc) · 1.32 KB
/
kmm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
apiVersion: v1
type: kubernetes.io/dockerconfigjson
kind: Secret
metadata:
name: pt-char-pull-secret
data:
## a token with pull permissions for the registry
## holding our driver container (e.g. quay.io/chrisp262/pt-char-dev)
.dockerconfigjson: <token with rw permissions on registry>
---
apiVersion: kmm.sigs.x-k8s.io/v1beta1
kind: Module
metadata:
name: pt-char-dev
spec:
moduleLoader:
container:
modprobe:
## the name of the kmod in the driver container
moduleName: ptemplate_char_dev
dirName: /opt
parameters:
## pass some tuning parameters in to the module
- max_dev=5
- default_msg=ptemplate
## imagePullPolicy is optional but usefull while debugging to be sure the
## latest version of the driver-container is used rather than an
## out-of-date locally cached version
imagePullPolicy: Always
kernelMappings:
## the kmod will work on any kernel so a single mapping with a regexp
## that matches any kernel version works well for us
- regexp: '^.+$'
containerImage: "quay.io/chrisp262/pt-char-dev:${KERNEL_FULL_VERSION}-sb"
imageRepoSecret:
## the pull secret defined above
name: pt-char-pull-secret
selector:
node-role.kubernetes.io/worker: "worker"
ptemplate: "required"