Skip to content
Snippets Groups Projects
Unverified Commit f7c5f458 authored by Erwan Miran's avatar Erwan Miran Committed by GitHub
Browse files

Ability to define plugins.cri.containerd params (#5624)

* Ability to define plugins.cri.containerd params

* addition of containerd field commented as an example

* documentation of containerd_config
parent 57997626
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,8 @@ Stack](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/dns-stack.m
* *docker_options* - Commonly used to set
``--insecure-registry=myregistry.mydomain:5000``
* *docker_plugins* - This list can be used to define [Docker plugins](https://docs.docker.com/engine/extend/) to install.
* *containerd_config* - Controls some parameters in containerd configuration file (usually /etc/containerd/config.toml).
[Default config](https://github.com/kubernetes-sigs/kubespray/blob/master/roles/container-engine/containerd/defaults/main.yml) can be overriden in inventory vars.
* *http_proxy/https_proxy/no_proxy* - Proxy variables for deploying behind a
proxy. Note that no_proxy defaults to all internal cluster IPs and hostnames
that correspond to each node.
......
......@@ -8,6 +8,8 @@ containerd_config:
registries:
"docker.io": "https://registry-1.docker.io"
max_container_log_line_size: -1
# containerd:
# snapshotter: native
containerd_version: '1.2.10'
containerd_package: 'containerd.io'
......
......@@ -25,6 +25,12 @@ disabled_plugins = ["restart"]
conf_dir = "/etc/cni/net.d"
conf_template = ""
{% if 'containerd' in containerd_config %}
[plugins.cri.containerd]
{% for param, value in containerd_config.containerd.items() %}
{{ param }} = {{ value }}
{% endfor %}
{% endif %}
[plugins.cri.containerd.untrusted_workload_runtime]
runtime_type = ""
runtime_engine = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment