Skip to content

Commit 80e9744

Browse files
TELCODOCS-2022: Worker: pull images via cri-o
1 parent 82502f6 commit 80e9744

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

modules/kmm-example-module-cr.adoc

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,44 @@ spec:
3030
- regexp: '^.+\fc37\.x86_64$' <6>
3131
containerImage: "some.other.registry/org/<my_kmod>:${KERNEL_FULL_VERSION}"
3232
- regexp: '^.+$' <7>
33-
containerImage: "some.registry/org/<my_kmod>:${KERNEL_FULL_VERSION}"
33+
containerImage: "some.registry/org/<my_kmod>:${KERNEL_FULL_VERSION}" <8>
3434
build:
35-
buildArgs: <8>
35+
buildArgs: <9>
3636
- name: ARG_NAME
3737
value: <some_value>
3838
secrets:
39-
- name: <some_kubernetes_secret> <9>
40-
baseImageRegistryTLS: <10>
39+
- name: <some_kubernetes_secret> <10>
40+
baseImageRegistryTLS: <11>
4141
insecure: false
42-
insecureSkipTLSVerify: false <11>
43-
dockerfileConfigMap: <12>
42+
insecureSkipTLSVerify: false <12>
43+
dockerfileConfigMap: <13>
4444
name: <my_kmod_dockerfile>
4545
sign:
4646
certSecret:
47-
name: <cert_secret> <13>
47+
name: <cert_secret> <14>
4848
keySecret:
49-
name: <key_secret> <14>
49+
name: <key_secret> <15>
5050
filesToSign:
5151
- /opt/lib/modules/${KERNEL_FULL_VERSION}/<my_kmod>.ko
52-
registryTLS: <15>
53-
insecure: false <16>
52+
registryTLS: <16>
53+
insecure: false <17>
5454
insecureSkipTLSVerify: false
55-
serviceAccountName: <sa_module_loader> <17>
56-
devicePlugin: <18>
55+
serviceAccountName: <sa_module_loader> <18>
56+
devicePlugin: <19>
5757
container:
58-
image: some.registry/org/device-plugin:latest <19>
58+
image: some.registry/org/device-plugin:latest <20>
5959
env:
6060
- name: MY_DEVICE_PLUGIN_ENV_VAR
6161
value: SOME_VALUE
62-
volumeMounts: <20>
62+
volumeMounts: <21>
6363
- mountPath: /some/mountPath
6464
name: <device_plugin_volume>
65-
volumes: <21>
65+
volumes: <22>
6666
- name: <device_plugin_volume>
6767
configMap:
6868
name: <some_configmap>
69-
serviceAccountName: <sa_device_plugin> <22>
70-
imageRepoSecret: <23>
69+
serviceAccountName: <sa_device_plugin> <23>
70+
imageRepoSecret: <24>
7171
name: <secret_name>
7272
selector:
7373
node-role.kubernetes.io/worker: ""
@@ -79,24 +79,25 @@ spec:
7979
<5> At least one kernel item is required.
8080
<6> For each node running a kernel matching the regular expression, KMM checks if you have included a tag or a digest. If you have not specified a tag or digest in the container image, then the validation webhook returns an error and does not apply the module.
8181
<7> For any other kernel, build the image using the Dockerfile in the `my-kmod` ConfigMap.
82-
<8> Optional.
83-
<9> Optional: A value for `some-kubernetes-secret` can be obtained from the build environment at `/run/secrets/some-kubernetes-secret`.
84-
<10> This field has no effect. When building kmod images or signing kmods within a kmod image,
82+
<8> The container image that holds the customer's kmods. This container should contain the `cp` binary.
83+
<9> Optional.
84+
<10> Optional: A value for `some-kubernetes-secret` can be obtained from the build environment at `/run/secrets/some-kubernetes-secret`.
85+
<11> This field has no effect. When building kmod images or signing kmods within a kmod image,
8586
you might sometimes need to pull base images from a registry that serves a certificate signed by an
8687
untrusted Certificate Authority (CA). In order for KMM to trust that CA, it must also trust the new CA
8788
by replacing the cluster's CA bundle.
8889
+
8990
See "Additional resources" to learn how to replace the cluster's CA bundle.
90-
<11> Optional: Avoid using this parameter. If set to `true`, the build will skip any TLS server certificate validation when pulling the image in the Dockerfile `FROM` instruction using plain HTTP.
91-
<12> Required.
92-
<13> Required: A secret holding the public secureboot key with the key 'cert'.
93-
<14> Required: A secret holding the private secureboot key with the key 'key'.
94-
<15> Optional: Avoid using this parameter. If set to `true`, KMM will be allowed to check if the container image already exists using plain HTTP.
95-
<16> Optional: Avoid using this parameter. If set to `true`, KMM will skip any TLS server certificate validation when checking if the container image already exists.
96-
<17> Optional.
91+
<12> Optional: Avoid using this parameter. If set to `true`, the build skips any TLS server certificate validation when pulling the image in the Dockerfile `FROM` instruction using plain HTTP.
92+
<13> Required.
93+
<14> Required: A secret holding the public secureboot key with the key 'cert'.
94+
<15> Required: A secret holding the private secureboot key with the key 'key'.
95+
<16> Optional: Avoid using this parameter. If set to `true`, KMM is allowed to check if the container image already exists using plain HTTP.
96+
<17> Optional: Avoid using this parameter. If set to `true`, KMM skips any TLS server certificate validation when checking if the container image already exists.
9797
<18> Optional.
98-
<19> Required: If the device plugin section is present.
99-
<20> Optional.
98+
<19> Optional.
99+
<20> Required: If the device plugin section is present.
100100
<21> Optional.
101101
<22> Optional.
102-
<23> Optional: Used to pull module loader and device plugin images.
102+
<23> Optional.
103+
<24> Optional: Used to pull module loader and device plugin images.

0 commit comments

Comments
 (0)