Skip to content

Update nvidia-ctk --config-source flag from 'command' to 'file'#76

Merged
cdesiniotis merged 1 commit into
NVIDIA:mainfrom
cdesiniotis:nvidia-ctk-config-source-file
Jun 9, 2026
Merged

Update nvidia-ctk --config-source flag from 'command' to 'file'#76
cdesiniotis merged 1 commit into
NVIDIA:mainfrom
cdesiniotis:nvidia-ctk-config-source-file

Conversation

@cdesiniotis

Copy link
Copy Markdown
Contributor

Using command as a config source can be problematic with containerd. The 'containerd config dump' command does not reliably inform us of the config file version currently set in the top-level /etc/containerd/config.toml file. For newer versions of containerd that support config versions 3 (or even 4), we fail to generate a valid drop-in config file if the top-level config is using version 2 of the containerd config schema.

In kind worker nodes (e.g. kindest/node:$k8s-ver), the top-level /etc/containerd/config.toml is populated with enough information for nvidia-ctk to create a functional drop-in file at /etc/containerd/conf.d/99-nvidia.toml. So it should be safe, at least in kind environments, to use 'file' as our config source.

Using command as a config source can be problematic with containerd.
The 'containerd config dump' command does not reliably inform us of
the config file version currently set in the top-level
/etc/containerd/config.toml file. For newer versions of containerd
that support config versions 3 (or even 4), we fail to generate
a valid drop-in config file if the top-level config is using version
2 of the containerd config schema.

In kind worker nodes (e.g. kindest/node:$k8s-ver), the top-level
/etc/containerd/config.toml is populated with enough information
for nvidia-ctk to create a functional drop-in file at
/etc/containerd/conf.d/99-nvidia.toml. So it should be safe, at
least in kind environments, to use 'file' as our config source.

Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
@cdesiniotis cdesiniotis requested a review from tariq1890 June 9, 2026 18:23
@cdesiniotis cdesiniotis self-assigned this Jun 9, 2026
@cdesiniotis cdesiniotis merged commit 24c190e into NVIDIA:main Jun 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants