2019-06-29 21:09:20 +00:00
|
|
|
---
|
2021-05-19 15:24:53 +00:00
|
|
|
containerd_storage_dir: "/var/lib/containerd"
|
|
|
|
containerd_state_dir: "/run/containerd"
|
2021-10-20 15:47:58 +00:00
|
|
|
containerd_systemd_dir: "/etc/systemd/system/containerd.service.d"
|
2022-10-12 04:49:00 +00:00
|
|
|
# The default value is not -999 here because containerd's oom_score_adj has been
|
|
|
|
# set to the -999 even if containerd_oom_score is 0.
|
|
|
|
# Ref: https://github.com/kubernetes-sigs/kubespray/pull/9275#issuecomment-1246499242
|
2021-05-19 15:24:53 +00:00
|
|
|
containerd_oom_score: 0
|
2021-04-02 06:20:11 +00:00
|
|
|
|
2022-06-27 17:56:59 +00:00
|
|
|
# containerd_default_runtime: "runc"
|
2021-04-02 06:20:11 +00:00
|
|
|
# containerd_snapshotter: "native"
|
|
|
|
|
2021-11-05 14:59:54 +00:00
|
|
|
containerd_runc_runtime:
|
|
|
|
name: runc
|
|
|
|
type: "io.containerd.runc.v2"
|
|
|
|
engine: ""
|
|
|
|
root: ""
|
2022-11-08 14:44:32 +00:00
|
|
|
base_runtime_spec: cri-base.json
|
2021-11-05 14:59:54 +00:00
|
|
|
options:
|
2021-11-19 16:40:53 +00:00
|
|
|
systemdCgroup: "{{ containerd_use_systemd_cgroup | ternary('true', 'false') }}"
|
2021-11-05 14:59:54 +00:00
|
|
|
|
|
|
|
containerd_additional_runtimes: []
|
2021-04-02 06:20:11 +00:00
|
|
|
# Example for Kata Containers as additional runtime:
|
|
|
|
# - name: kata
|
|
|
|
# type: "io.containerd.kata.v2"
|
|
|
|
# engine: ""
|
|
|
|
# root: ""
|
|
|
|
|
2022-11-25 23:12:04 +00:00
|
|
|
containerd_base_runtime_spec_rlimit_nofile: 65535
|
2022-11-08 14:44:32 +00:00
|
|
|
|
|
|
|
containerd_default_base_runtime_spec_patch:
|
|
|
|
process:
|
|
|
|
rlimits:
|
|
|
|
- type: RLIMIT_NOFILE
|
|
|
|
hard: "{{ containerd_base_runtime_spec_rlimit_nofile }}"
|
|
|
|
soft: "{{ containerd_base_runtime_spec_rlimit_nofile }}"
|
|
|
|
|
2022-09-23 17:38:27 +00:00
|
|
|
containerd_base_runtime_specs:
|
2022-11-08 14:44:32 +00:00
|
|
|
cri-base.json: "{{ containerd_default_base_runtime_spec | combine(containerd_default_base_runtime_spec_patch,recursive=1) }}"
|
2022-09-23 17:38:27 +00:00
|
|
|
|
2021-04-02 06:20:11 +00:00
|
|
|
containerd_grpc_max_recv_message_size: 16777216
|
|
|
|
containerd_grpc_max_send_message_size: 16777216
|
|
|
|
|
|
|
|
containerd_debug_level: "info"
|
|
|
|
|
|
|
|
containerd_metrics_address: ""
|
|
|
|
|
|
|
|
containerd_metrics_grpc_histogram: false
|
|
|
|
|
|
|
|
containerd_registries:
|
|
|
|
"docker.io": "https://registry-1.docker.io"
|
|
|
|
|
|
|
|
containerd_max_container_log_line_size: -1
|
2019-07-11 06:46:54 +00:00
|
|
|
|
|
|
|
containerd_cfg_dir: /etc/containerd
|
|
|
|
|
2021-04-12 08:02:00 +00:00
|
|
|
# Extra config to be put in {{ containerd_cfg_dir }}/config.toml literally
|
|
|
|
containerd_extra_args: ''
|
2021-08-23 13:40:00 +00:00
|
|
|
|
|
|
|
# Configure registry auth (if applicable to secure/insecure registries)
|
|
|
|
containerd_registry_auth: []
|
|
|
|
# - registry: 10.0.0.2:5000
|
|
|
|
# username: user
|
|
|
|
# password: pass
|
2022-09-13 09:51:06 +00:00
|
|
|
|
|
|
|
# Configure containerd service
|
|
|
|
containerd_limit_proc_num: "infinity"
|
|
|
|
containerd_limit_core: "infinity"
|
|
|
|
containerd_limit_open_file_num: "infinity"
|
|
|
|
containerd_limit_mem_lock: "infinity"
|