-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom path for runtimes autodetect #10761
Comments
Where does Flatcar want to put things? Can you symlink them into one of the expected paths? |
@brandond maybe could we do something like this to support more paths? since we still will get the paths that we want and the user can add his path to the search too runtimesPath = "/usr/local/nvidia/toolkit:/opt/kwasm/bin"
originalPath := os.Getenv("PATH")
os.Setenv("PATH", runtimesPath + os.PathListSeparator + originalPath)
extraRuntimes := findContainerRuntimes()
os.Setenv("PATH", originalPath) |
Testing reference: https://docs.k3s.io/advanced#nvidia-container-runtime-support |
@vitorsavian thanks for sharing the steps here: #10953 (comment). But I am not seeing the expected behavior when I followed the steps. Please advise if I am missing anything... Steps:
@ShylajaDevadiga FYI, When I follow the below steps along with the steps that @vitorsavian has provided, I only see the default path in config.toml (in both previous and latest versions) where
|
@mdrahman-suse I added a PR that will make it easier and it will resolve when running with systemd but the workaround is to echo "PATH=${PATH}" | sudo tee -a /etc/systemd/system/k3s.service.env after exporting the new PATH and then restart k3s with |
Validated on master branch with commit e9c5295Environment
Test steps:
[ Replication:
Validation:
|
#10998 closing based on this. |
Is your feature request related to a problem? Please describe.
I'm using rke2 with Flatcar OS, using a custom path to install Nvidia toolkit.
Because of this custom path, runtimes autodetect is not finding nvidia runtime.
Describe the solution you'd like
It would be nice to be allowed to add some custom path in
k3s/pkg/agent/containerd/config_linux.go
Line 27 in 85e02e1
k3s/pkg/agent/containerd/config_linux.go
Line 61 in 85e02e1
The text was updated successfully, but these errors were encountered: