Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to set default runtime (for example, nvidia) for k3s? #9702

Closed
npuichigo opened this issue Mar 8, 2024 · 1 comment
Closed

How to set default runtime (for example, nvidia) for k3s? #9702

npuichigo opened this issue Mar 8, 2024 · 1 comment

Comments

@npuichigo
Copy link

{{ if .NodeConfig.DefaultRuntime }}default_runtime_name = "{{ .NodeConfig.DefaultRuntime }}"{{end}}

Where does these values like .NodeConfig.DefaultRuntime and .NodeConfig.DefaultRuntime come from? Since I don't want to always specify runtimeClassName: nvidia, is there any way to specify that on installation?

@brandond
Copy link
Contributor

brandond commented Mar 8, 2024

--default-runtime value (agent/runtime) Set the default runtime in containerd

I don't believe the CLI docs on the website have been updated since we added this option, but it does show up in k3s server --help and k3s agent --help

@brandond brandond closed this as completed Mar 8, 2024
@k3s-io k3s-io locked and limited conversation to collaborators Mar 8, 2024
@brandond brandond converted this issue into discussion #9705 Mar 8, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

2 participants