You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/blog/_posts/2025-06-25-image-compatibility-in-cloud-native-environments/index.md
+32-24Lines changed: 32 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ A container image is built on a base image, which provides a minimal runtime env
27
27
Host driver versions must match the supported range of a library version inside the container to avoid compatibility problems. Examples include GPUs and network drivers.
28
28
-**Libraries or Software**:
29
29
The container must come with a specific version or range of versions for a library or software to run optimally in the environment. Examples from high performance computing are MPI, EFA, or Infiniband.
30
-
-**Kernel Modules or Features:**:
30
+
-**Kernel Modules or Features**:
31
31
Specific kernel features or modules must be present. Examples include having support of write protected huge page faults, or the presence of VFIO
32
32
- And more…
33
33
@@ -121,33 +121,41 @@ Additionally, it could potentially enable automatic node configuration to some e
121
121
122
122
### Examples of usage
123
123
124
-
1. **Define image compatibility metadata**
125
-
A [container image](/docs/concepts/containers/images) can have metadata that describes its requirements based on features discovered from nodes, like kernel modules or CPU models.
126
-
The previous compatibility specification example in this article exemplified this use case.
127
-
128
-
2. **Attach the artifact to the image**
129
-
The image compatibility specification is stored as an OCI artifact.
130
-
You can attach this metadata to your container image using the [oras](https://oras.land/) tool.
131
-
The registry only needs to support OCI artifacts, support for arbitrary types is not required.
132
-
Keep in mind that the container image and the artifact must be stored in the same registry.
133
-
Use the following command to attach the artifact to the image:
After attaching the compatibility specification, you can validate whether a node meets the image's requirements.
143
-
This validation can be done using the [nfd client](https://kubernetes-sigs.github.io/node-feature-discovery/v0.17/reference/node-feature-client-reference.html):
150
+
```bash
151
+
nfd compat validate-node --image<image-url>
152
+
```
144
153
145
-
`nfd compat validate-node --image <image-url>`
154
+
4.**Read the output from the client**
146
155
147
-
4.**Read the output from the client**
148
-
Finally you can read the report generated by the tool or use your own tools to act based on the generated JSON report.
156
+
Finally you can read the report generated by the tool or use your own tools to act based on the generated JSON report.
0 commit comments