This message was deleted.
# general
a
This message was deleted.
c
You'd need to provide a config.toml.tmpl, as described in the rke2 docs.
n
Yes I saw that, but can I simply create that from an existing config.toml in /var/lib/rancher/rke2/agent/etc/containerd/config.toml and place the very same content in the config.toml.tpml in the same directory with my modifications, BEFORE I install rke2 and BEFORE this directory even exists?
Maybe I should mention, that I use edge-image-builder and try to setup an ISO with the modified containerd config, before rke2 is installed.
c
You can, but I would recommend keeping that as an actual template with the bits you need added, and not just copy pasting a pre rendered config file into it without any templating.
n
@creamy-pencil-82913: Yes I also see that as a problem, but I was searching for examples and did not find anything. Any clue, where I find real live examples for a working containerd template config? That would be awesome.
c
The docs link to it
n
The docs link to some golang code. At least the ones I found. That doesn't help me so much.
c
Yes. That's the template.
Put the template content into the .tmpl file and modify the bits you want to change.
Ah I see that page has drifted, apologies
One sec
n
An example of a simple config.toml.tmpl would be very helpful, because I'm not into go templating.
n
Ah ok. Cool. Thanks a lot! This should be changed in the official docs 😄
c
Yeah it just got moved out a while back and the docs have been updated
n
Do you know if I have to restart the rke2-service after applying a containerd template or is that "hot-applyable" without restarting that rke2-service ?
c
It is only rendered into the actual config on startup. Containerd does not support live reloading of the config file.
👍 1