mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-08 11:07:43 +03:00
feat: add containerd_extra_runtime_args for CRI runtime configuration (#12247)
Add support for injecting additional configuration options into the containerd CRI runtime plugin section via containerd_extra_runtime_args.
This commit is contained in:
@@ -36,6 +36,15 @@ oom_score = {{ containerd_oom_score }}
|
||||
enable_cdi = true
|
||||
cdi_spec_dirs = ["/etc/cdi", "/var/run/cdi"]
|
||||
{% endif %}
|
||||
{% for key, value in containerd_extra_runtime_args.items() %}
|
||||
{% if value is string %}
|
||||
{{ key }} = "{{ value }}"
|
||||
{% elif value is boolean %}
|
||||
{{ key }} = {{ value | lower }}
|
||||
{% else %}
|
||||
{{ key }} = {{ value }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
[plugins."io.containerd.cri.v1.runtime".containerd]
|
||||
default_runtime_name = "{{ containerd_default_runtime }}"
|
||||
|
||||
Reference in New Issue
Block a user