2021-04-02 06:20:11 +00:00
|
|
|
version = 2
|
2021-01-05 15:13:58 +00:00
|
|
|
|
2021-04-02 06:20:11 +00:00
|
|
|
[grpc]
|
|
|
|
max_recv_message_size = {{ containerd_grpc_max_recv_message_size | default(16777216) }}
|
|
|
|
max_send_message_size = {{ containerd_grpc_max_send_message_size | default(16777216) }}
|
2019-06-29 21:09:20 +00:00
|
|
|
|
|
|
|
[debug]
|
2021-04-02 06:20:11 +00:00
|
|
|
level = "{{ containerd_debug_level | default('info') }}"
|
2019-06-29 21:09:20 +00:00
|
|
|
|
2021-04-02 06:20:11 +00:00
|
|
|
[metrics]
|
|
|
|
address = "{{ containerd_metrics_address | default('') }}"
|
|
|
|
grpc_histogram = {{ containerd_metrics_grpc_histogram | default(false) | lower }}
|
|
|
|
|
|
|
|
[plugins]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri"]
|
|
|
|
sandbox_image = "{{ pod_infra_image_repo }}:{{ pod_infra_image_tag }}"
|
|
|
|
max_container_log_line_size = {{ containerd_max_container_log_line_size }}
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd]
|
|
|
|
default_runtime_name = "{{ containerd_default_runtime | default('runc') }}"
|
|
|
|
snapshotter = "{{ containerd_snapshotter | default('overlayfs') }}"
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
|
|
|
|
{% for runtime in containerd_runtimes %}
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ runtime.name }}]
|
|
|
|
runtime_type = "{{ runtime.type }}"
|
|
|
|
runtime_engine = "{{ runtime.engine }}"
|
|
|
|
runtime_root = "{{ runtime.root }}"
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ runtime.name }}.options]
|
|
|
|
{% for key, value in runtime.options.items() %}
|
|
|
|
{{ key }} = {{ value }}
|
2019-06-29 21:09:20 +00:00
|
|
|
{% endfor %}
|
2020-02-17 10:15:29 +00:00
|
|
|
{% endfor %}
|
2020-06-22 07:28:39 +00:00
|
|
|
{% if kata_containers_enabled %}
|
2021-04-02 06:20:11 +00:00
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.kata-qemu]
|
|
|
|
runtime_type = "io.containerd.kata-qemu.v2"
|
2020-06-22 07:28:39 +00:00
|
|
|
{% endif %}
|
2021-04-02 06:20:11 +00:00
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
|
|
|
|
{% for registry, addr in containerd_registries.items() %}
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."{{ registry }}"]
|
|
|
|
endpoint = ["{{ ([ addr ] | flatten ) | join('","') }}"]
|
2019-06-29 21:09:20 +00:00
|
|
|
{% endfor %}
|