kubelet: Configure cri-o container registries

The _containers-image_ role configures _containers-registries.conf(5)_ and
_containers-cert.d(5)_, which are used by CRI-O (and `podman`).
Specifically, we'll use these to redirect requests for images on Docker
Hub (docker.io) to the internal caching proxy.
This commit is contained in:
2025-07-08 11:28:42 -05:00
parent f8f3dd5f83
commit 6667066826
5 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{% for registry in container_registries|d([]) %}
[[registry]]
{% for key, value in registry|dictsort %}
{{ key }} = {{ value | to_json }}
{% endfor %}
{% endfor %}