Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
Document that the OpenShift internal container image registry is not
enabled by default on bare metal installation.
Replace Fedora kernel versions with RHEL.
  • Loading branch information
qbarrand committed Jul 26, 2023
1 parent ce853bf commit 942117b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
18 changes: 9 additions & 9 deletions docs/mkdocs/documentation/deploy_kmod.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ spec:
inTreeModuleToRemove: my-kmod-intree # optional
kernelMappings: # At least one item is required
- literal: 6.0.15-300.fc37.x86_64
containerImage: some.registry/org/my-kmod:6.0.15-300.fc37.x86_64
- literal: 5.14.0-70.58.1.el9_0.x86_64
containerImage: some.registry/org/my-kmod:5.14.0-70.58.1.el9_0.x86_64
# For each node running a kernel matching the regexp below,
# KMM will create a DaemonSet running the image specified in containerImage
# with ${KERNEL_FULL_VERSION} replaced with the kernel version.
- regexp: '^.+\fc37\.x86_64$'
- regexp: '^.+\el9\.x86_64$'
containerImage: "some.other.registry/org/my-kmod:${KERNEL_FULL_VERSION}"
# For any other kernel, build the image using the Dockerfile in the my-kmod ConfigMap.
Expand Down Expand Up @@ -251,9 +251,9 @@ The following `Module` fields support shell-like variable substitution:

The following variables will be substituted:

| Name | Description | Example |
|-------------------------------|----------------------------------------|-------------------------|
| `KERNEL_FULL_VERSION` | The kernel version we are building for | `6.3.5-200.fc38.x86_64` |
| `KERNEL_VERSION` (deprecated) | The kernel version we are building for | `6.3.5-200.fc38.x86_64` |
| `MOD_NAME` | The `Module`'s name | `my-mod` |
| `MOD_NAMESPACE` | The `Module`'s namespace | `my-namespace` |
| Name | Description | Example |
|-------------------------------|----------------------------------------|-------------------------------|
| `KERNEL_FULL_VERSION` | The kernel version we are building for | `5.14.0-70.58.1.el9_0.x86_64` |
| `KERNEL_VERSION` (deprecated) | The kernel version we are building for | `5.14.0-70.58.1.el9_0.x86_64` |
| `MOD_NAME` | The `Module`'s name | `my-mod` |
| `MOD_NAMESPACE` | The `Module`'s namespace | `my-namespace` |
19 changes: 13 additions & 6 deletions docs/mkdocs/documentation/module_loader_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ object to build your image.

The following build arguments are automatically set by KMM:

| Name | Description | Example |
|-------------------------------|----------------------------------------|-------------------------|
| `KERNEL_FULL_VERSION` | The kernel version we are building for | `6.3.5-200.fc38.x86_64` |
| `KERNEL_VERSION` (deprecated) | The kernel version we are building for | `6.3.5-200.fc38.x86_64` |
| `MOD_NAME` | The `Module`'s name | `my-mod` |
| `MOD_NAMESPACE` | The `Module`'s namespace | `my-namespace` |
| Name | Description | Example |
|-------------------------------|----------------------------------------|-------------------------------|
| `KERNEL_FULL_VERSION` | The kernel version we are building for | `5.14.0-70.58.1.el9_0.x86_64` |
| `KERNEL_VERSION` (deprecated) | The kernel version we are building for | `5.14.0-70.58.1.el9_0.x86_64` |
| `MOD_NAME` | The `Module`'s name | `my-mod` |
| `MOD_NAMESPACE` | The `Module`'s namespace | `my-namespace` |

Once the image is built, KMM proceeds with the `Module` reconciliation.

Expand Down Expand Up @@ -102,6 +102,13 @@ Once the image is built, KMM proceeds with the `Module` reconciliation.
insecureSkipTLSVerify: false
```
!!! warning "OpenShift's internal container registry is not enabled by default on bare metal clusters"
A common pattern is to push ModuleLoader images to OpenShift's internal image registry once they are built.
That registry is not enabled by default on bare metal installations of OpenShift.
Refer to [Configuring the registry for bare metal](https://docs.openshift.com/container-platform/4.13/registry/configuring_registry_storage/configuring-registry-storage-baremetal.html)
to enable it.
### Using Driver Toolkit (DTK)
[Driver Toolkit](https://docs.openshift.com/container-platform/4.12/hardware_enablement/psap-driver-toolkit.html) is a
Expand Down

0 comments on commit 942117b

Please sign in to comment.