Is it possible that in new RKE2 / GPU-operator set...
# rke2
s
Is it possible that in new RKE2 / GPU-operator setups, the config parameters:
Copy code
- name: CONTAINERD_RUNTIME_CLASS
        value: nvidia
      - name: CONTAINERD_SET_AS_DEFAULT
        value: "true"
      - name: CONTAINERD_CONFIG
        value: /var/lib/rancher/rke2/agent/etc/containerd/config.toml
are ignored / not working / not supported anymore?
n
I think you need to use config.toml.tmpl as name of the config file (and maybe config-v3.toml.tmpl). However, we ended with dummy config file and we distribute pre-fabricated config-v3.toml.tmpl, because rke2 afaik does not support nvidia-cdi or nvidia-legacy runtimes.
s
You are right, it used to be
/var/lib/rancher/rke2/agent/etc/containerd/config.toml.tmpl
but that file does not exist anymore in my setup,...
n
you need to create it
s
Oh, really? Manually on all nodes? Hm...ok.
n
or nvidia toolkit pod will create it for you, but just plain version I think
without registries and so on
s
Yeah, I think it used to be created automatically but it doesn't get created anymore. So,...pretty weird. Will check if that still runs, otherwise I will have to find a different solution 🙂
n
I think that .tmpl was never created by rke2. it contrary uses it instead of internal toml configuration. so at some point, it needs to be created. If you pass it to the gpu-operator, nvidia-toolkit pod will create it, but only some minimal version. our approach is to collect the correct tmpl file and then distribute it via puppet tool to each gpu node and instruct gpu-operator to touch some dummy file instead and it works as we need.
s
Hmm,...ok
n
also be aware that the file was renamed to config-v3.toml.tmpl in recent (containerd 2.0) versions of rke
s
Ok, so it's only a matter of time until the config.toml.tmpl is not usable anymore.
c
No, the old temple still works. And will as long as containerd supports the legacy syntax
This is all covered in the docs, should not be any mystery about it: https://docs.rke2.io/advanced#configuring-containerd