services.rke2.containerdConfigTemplate
Config template for containerd, to be placed at
/var/lib/rancher/rke2/agent/etc/containerd/config.toml.tmpl.
See the docs on configuring containerd.
- Type
null or string- Default
null- Example
# Base config {{ template "base" . }} # Add a custom runtime [plugins."io.containerd.grpc.v1.cri".containerd.runtimes."custom"] runtime_type = "io.containerd.runc.v2" [plugins."io.containerd.grpc.v1.cri".containerd.runtimes."custom".options] BinaryName = "/path/to/custom-container-runtime"- Declared
- <nixpkgs/nixos/modules/services/cluster/rancher/default.nix>