Skip to content

Commit 18d04e5

Browse files
authored
Merge pull request #4418 from piyush-jena/roll-fwd
Add support for NVIDIA MIG
2 parents cbf935a + e7f43c3 commit 18d04e5

File tree

8 files changed

+114
-43
lines changed

8 files changed

+114
-43
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# v1.34.0 (2025-03-03)
2+
3+
## OS Changes
4+
5+
* Add support for NVIDIA Multi-Instance GPU (MIG) ([#4418])
6+
7+
## Build Changes
8+
* Update bottlerocket-core-kit from 6.0.1 to 6.0.2 [CHANGELOG](https://github.com/bottlerocket-os/bottlerocket-core-kit/blob/develop/CHANGELOG.md#v602-2025-02-26) ([#4416])
9+
* Update bottlerocket-kernel-kit from 1.1.2 to 1.2.0 [CHANGELOG](https://github.com/bottlerocket-os/bottlerocket-kernel-kit/blob/develop/CHANGELOG.md#v120-2024-02-26) ([#4416])
10+
11+
### Twoliter
12+
13+
* Update Twoliter to 0.7.3 ([#4416])
14+
15+
[#4416]: https://github.com/bottlerocket-os/bottlerocket/pull/4416
16+
[#4418]: https://github.com/bottlerocket-os/bottlerocket/pull/4418
17+
118
# v1.33.0 (2025-02-26)
219

320
## Release Highlights

Release.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "1.33.0"
1+
version = "1.34.0"
22

33
[migrations]
44
"(0.3.1, 0.3.2)" = ["migrate_v0.3.2_admin-container-v0-5-0.lz4"]
@@ -404,3 +404,6 @@ version = "1.33.0"
404404
"migrate_v1.33.0_public-remove-source-control.lz4",
405405
"migrate_v1.33.0_remove-metadata-and-weak-settings-migration.lz4",
406406
]
407+
"(1.33.0, 1.34.0)" = [
408+
"migrate_v1.34.0_kubelet-device-plugins-mig-settings.lz4",
409+
]

Twoliter.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
schema-version = 1
2-
release-version = "1.33.0"
2+
release-version = "1.34.0"
33

44
[vendor.bottlerocket]
55
registry = "public.ecr.aws/bottlerocket"

sources/Cargo.lock

+42-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sources/Cargo.toml

+7-6
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ members = [
8888
"settings-migrations/v1.33.0/public-remove-source-admin",
8989
"settings-migrations/v1.33.0/public-remove-source-control",
9090
"settings-migrations/v1.33.0/remove-metadata-and-weak-settings-migration",
91+
"settings-migrations/v1.34.0/kubelet-device-plugins-mig-settings",
9192

9293
"settings-plugins/aws-dev",
9394
"settings-plugins/aws-ecs-1",
@@ -164,22 +165,22 @@ version = "0.1.0"
164165

165166
[workspace.dependencies.bottlerocket-modeled-types]
166167
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
167-
tag = "bottlerocket-settings-models-v0.7.0"
168-
version = "0.7.0"
168+
tag = "bottlerocket-settings-models-v0.8.0"
169+
version = "0.8.0"
169170

170171
[workspace.dependencies.bottlerocket-settings-models]
171172
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
172-
tag = "bottlerocket-settings-models-v0.7.0"
173-
version = "0.7.0"
173+
tag = "bottlerocket-settings-models-v0.8.0"
174+
version = "0.8.0"
174175

175176
[workspace.dependencies.bottlerocket-settings-plugin]
176177
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
177-
tag = "bottlerocket-settings-models-v0.7.0"
178+
tag = "bottlerocket-settings-models-v0.8.0"
178179
version = "0.1.0"
179180

180181
[workspace.dependencies.settings-extension-oci-defaults]
181182
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
182-
tag = "bottlerocket-settings-models-v0.7.0"
183+
tag = "bottlerocket-settings-models-v0.8.0"
183184
version = "0.1.0"
184185

185186
[profile.release]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "kubelet-device-plugins-mig-settings"
3+
version = "0.1.0"
4+
authors = ["Piyush Jena <[email protected]>"]
5+
license = "Apache-2.0 OR MIT"
6+
edition = "2021"
7+
publish = false
8+
# Don't rebuild crate just because of changes to README.
9+
exclude = ["README.md"]
10+
11+
12+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13+
14+
[dependencies]
15+
migration-helpers.workspace = true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
use migration_helpers::common_migrations::AddPrefixesMigration;
2+
use migration_helpers::{migrate, Result};
3+
use std::process;
4+
5+
/// We added new settings for configuring the NVIDIA k8s device plugin.
6+
fn run() -> Result<()> {
7+
migrate(AddPrefixesMigration(vec![
8+
"settings.kubelet-device-plugins.nvidia.device-partitioning-strategy",
9+
"settings.kubelet-device-plugins.nvidia.mig",
10+
"configuration-files.nvidia-k8s-device-plugin-mig-conf",
11+
]))
12+
}
13+
14+
// Returning a Result from main makes it print a Debug representation of the error, but with Snafu
15+
// we have nice Display representations of the error, so we wrap "main" (run) and print any error.
16+
// https://github.com/shepmaster/snafu/issues/110
17+
fn main() {
18+
if let Err(e) = run() {
19+
eprintln!("{}", e);
20+
process::exit(1);
21+
}
22+
}

sources/shared-defaults/nvidia-k8s-device-plugin.toml

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ restart-commands = ["/bin/systemctl try-reload-or-restart nvidia-k8s-device-plug
44
configuration-files = [
55
"nvidia-k8s-device-plugin-conf",
66
"nvidia-k8s-device-plugin-exec-start-conf",
7+
"nvidia-k8s-device-plugin-mig-conf"
78
]
89

910
[configuration-files.nvidia-k8s-device-plugin-conf]
@@ -14,6 +15,10 @@ template-path = "/usr/share/templates/nvidia-k8s-device-plugin-conf"
1415
path = "/etc/systemd/system/nvidia-k8s-device-plugin.service.d/exec-start.conf"
1516
template-path = "/usr/share/templates/nvidia-k8s-device-plugin-exec-start-conf"
1617

18+
[configuration-files.nvidia-k8s-device-plugin-mig-conf]
19+
path = "/etc/nvidia-migmanager/nvidia-migmanager.toml"
20+
template-path = "/usr/share/templates/nvidia-k8s-device-plugin-mig-conf"
21+
1722
[metadata.settings.kubelet-device-plugins.nvidia]
1823
affected-services = ["nvidia-k8s-device-plugin"]
1924

@@ -22,3 +27,4 @@ pass-device-specs = true
2227
device-id-strategy="index"
2328
device-list-strategy="volume-mounts"
2429
device-sharing-strategy="none"
30+
device-partitioning-strategy="none"

0 commit comments

Comments
 (0)