Skip to content

Instantly share code, notes, and snippets.

@ranrubin
Created May 3, 2022 14:35
Show Gist options
  • Save ranrubin/c4ff2f412846548948d67039ae795801 to your computer and use it in GitHub Desktop.
Save ranrubin/c4ff2f412846548948d67039ae795801 to your computer and use it in GitHub Desktop.
k3s change the runtime configuration
[plugins.opt]
path = "/var/lib/rancher/k3s/agent/containerd"
[plugins.cri]
stream_server_address = "127.0.0.1"
stream_server_port = "10010"
enable_selinux = false
sandbox_image = "rancher/mirrored-pause:3.5"
[plugins.cri.containerd]
disable_snapshot_annotations = true
snapshotter = "overlayfs"
[plugins.cri.cni]
bin_dir = "/var/lib/rancher/k3s/data/3211b45ca58c81a5ab769d7b4e0dcbad6b8512346c01ac2a4c631c0960f37b7f/bin"
conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d"
[plugins.cri.containerd.runtimes.runc]
runtime_type = "io.containerd.runtime.v1.linux"
[plugins.linux]
runtime = "nvidia-container-runtime"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment