Skip to content
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

crictl info does not match containerd.toml #11631

Closed
santurini opened this issue Jan 20, 2025 · 1 comment
Closed

crictl info does not match containerd.toml #11631

santurini opened this issue Jan 20, 2025 · 1 comment

Comments

@santurini
Copy link

I am experiencing an issue with the NVIDIA device plugin on my k3s cluster after enabling MPS mode. In fact switching from the GPU-Operator to the standalone nvidia-device-plugin, every time a systemctl daemon-reload is triggered, my pods lose access to the GPUS (NVIDIA/nvidia-container-toolkit#48).

As the official issue suggest, a workaround should be changing the /etc/containerd/config.toml in order to set SystemdCgroup = false.

Even if I do this, when I run crictl info this is the configuration I have for the nvidia runtime:

  "config":
      ...
      "runtimes": {
        "nvidia": {
          ...
          "options": {
            "BinaryName": "/usr/local/nvidia/toolkit/nvidia-container-runtime",
            "SystemdCgroup": true
          },
        },

While this is my containerd configuration:

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia.options]
  BinaryName = "/usr/bin/nvidia-container-runtime"
  CriuImagePath = ""
  CriuPath = ""
  CriuWorkPath = ""
  IoGid = 0
  IoUid = 0
  NoNewKeyring = false
  NoPivotRoot = false
  Root = ""
  ShimCgroup = ""
  SystemdCgroup = false

How can I change the configuration I get when running crictl info to change the SystemdCgroup ?

@brandond
Copy link
Member

Please read the docs: https://docs.k3s.io/advanced#configuring-containerd

K3s does not use /etc/containerd/config.toml.

@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

2 participants