/etc/cri/conf.d/20-customization.part
.
Examples
Exposing Metrics
Patch the machine config by adding the following:Pause Image
This change is often required for air-gapped environments, ascontainerd
CRI plugin has a reference to the pause
image which is used
to create pods, and it canβt be controlled with Kubernetes pod definitions.
pause
image is set to registry.k8s.io/pause:3.8
:
Set CDI plugin Spec Dirs to writable directories
By default Containerd configures CDI to read discovered hardware devices from["/etc/cdi", "/var/run/cdi"]
.
Since /etc is not writable in Talos, CDI does not work for Dynamic Resource Allocation out of the box.
To be able to use CDI and DRA modify the cdi spec dirs to writable locations like so:
Enabling NRI Plugins
By default, Talos disables NRI plugins incontainerd
, as they might have security implications.
However, if you need to enable them, you can do so by adding the following configuration: