2021-04-19 00:00:55 +08:00
|
|
|
version = 2
|
|
|
|
root = "{{ CONTAINERD_STORAGE_DIR }}"
|
2019-05-18 16:48:58 +08:00
|
|
|
state = "/run/containerd"
|
2021-04-19 00:00:55 +08:00
|
|
|
plugin_dir = ""
|
|
|
|
disabled_plugins = []
|
|
|
|
required_plugins = []
|
|
|
|
oom_score = 0
|
2019-05-18 16:48:58 +08:00
|
|
|
|
|
|
|
[grpc]
|
|
|
|
address = "/run/containerd/containerd.sock"
|
2021-04-19 00:00:55 +08:00
|
|
|
tcp_address = ""
|
|
|
|
tcp_tls_cert = ""
|
|
|
|
tcp_tls_key = ""
|
2019-05-18 16:48:58 +08:00
|
|
|
uid = 0
|
|
|
|
gid = 0
|
|
|
|
max_recv_message_size = 16777216
|
|
|
|
max_send_message_size = 16777216
|
|
|
|
|
2021-04-19 00:00:55 +08:00
|
|
|
[ttrpc]
|
|
|
|
address = ""
|
|
|
|
uid = 0
|
|
|
|
gid = 0
|
|
|
|
|
2019-05-18 16:48:58 +08:00
|
|
|
[debug]
|
|
|
|
address = ""
|
|
|
|
uid = 0
|
|
|
|
gid = 0
|
|
|
|
level = ""
|
|
|
|
|
|
|
|
[metrics]
|
|
|
|
address = ""
|
|
|
|
grpc_histogram = false
|
|
|
|
|
|
|
|
[cgroup]
|
|
|
|
path = ""
|
|
|
|
|
2021-04-19 00:00:55 +08:00
|
|
|
[timeouts]
|
|
|
|
"io.containerd.timeout.shim.cleanup" = "5s"
|
|
|
|
"io.containerd.timeout.shim.load" = "5s"
|
|
|
|
"io.containerd.timeout.shim.shutdown" = "3s"
|
|
|
|
"io.containerd.timeout.task.state" = "2s"
|
|
|
|
|
2019-05-18 16:48:58 +08:00
|
|
|
[plugins]
|
2021-04-19 00:00:55 +08:00
|
|
|
[plugins."io.containerd.gc.v1.scheduler"]
|
|
|
|
pause_threshold = 0.02
|
|
|
|
deletion_threshold = 0
|
|
|
|
mutation_threshold = 100
|
|
|
|
schedule_delay = "0s"
|
|
|
|
startup_delay = "100ms"
|
|
|
|
[plugins."io.containerd.grpc.v1.cri"]
|
|
|
|
disable_tcp_service = true
|
2019-05-18 16:48:58 +08:00
|
|
|
stream_server_address = "127.0.0.1"
|
|
|
|
stream_server_port = "0"
|
2021-04-19 00:00:55 +08:00
|
|
|
stream_idle_timeout = "4h0m0s"
|
2019-05-18 16:48:58 +08:00
|
|
|
enable_selinux = false
|
2021-04-19 00:00:55 +08:00
|
|
|
selinux_category_range = 1024
|
2019-05-18 16:48:58 +08:00
|
|
|
sandbox_image = "{{ SANDBOX_IMAGE }}"
|
|
|
|
stats_collect_period = 10
|
|
|
|
systemd_cgroup = false
|
|
|
|
enable_tls_streaming = false
|
|
|
|
max_container_log_line_size = 16384
|
2021-04-19 00:00:55 +08:00
|
|
|
disable_cgroup = false
|
|
|
|
disable_apparmor = false
|
|
|
|
restrict_oom_score_adj = false
|
|
|
|
max_concurrent_downloads = 3
|
|
|
|
disable_proc_mount = false
|
|
|
|
unset_seccomp_profile = ""
|
|
|
|
tolerate_missing_hugetlb_controller = true
|
|
|
|
disable_hugetlb_controller = true
|
|
|
|
ignore_image_defined_volumes = false
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd]
|
2019-05-18 16:48:58 +08:00
|
|
|
snapshotter = "overlayfs"
|
2021-04-19 00:00:55 +08:00
|
|
|
default_runtime_name = "runc"
|
2019-05-18 16:48:58 +08:00
|
|
|
no_pivot = false
|
2021-04-19 00:00:55 +08:00
|
|
|
disable_snapshot_annotations = true
|
|
|
|
discard_unpacked_layers = false
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]
|
|
|
|
runtime_type = ""
|
2019-05-18 16:48:58 +08:00
|
|
|
runtime_engine = ""
|
|
|
|
runtime_root = ""
|
2021-04-19 00:00:55 +08:00
|
|
|
privileged_without_host_devices = false
|
|
|
|
base_runtime_spec = ""
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime]
|
2019-05-18 16:48:58 +08:00
|
|
|
runtime_type = ""
|
|
|
|
runtime_engine = ""
|
|
|
|
runtime_root = ""
|
2021-04-19 00:00:55 +08:00
|
|
|
privileged_without_host_devices = false
|
|
|
|
base_runtime_spec = ""
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
|
|
|
runtime_type = "io.containerd.runc.v2"
|
|
|
|
runtime_engine = ""
|
|
|
|
runtime_root = ""
|
|
|
|
privileged_without_host_devices = false
|
|
|
|
base_runtime_spec = ""
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
|
|
|
SystemdCgroup = true
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".cni]
|
2019-05-18 16:48:58 +08:00
|
|
|
bin_dir = "{{ bin_dir }}"
|
|
|
|
conf_dir = "/etc/cni/net.d"
|
2021-04-19 00:00:55 +08:00
|
|
|
max_conf_num = 1
|
2020-12-18 10:23:55 +08:00
|
|
|
conf_template = "/etc/cni/net.d/10-default.conf"
|
2019-07-15 00:15:25 +08:00
|
|
|
{% if ENABLE_MIRROR_REGISTRY %}
|
2021-04-19 00:00:55 +08:00
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
|
|
|
|
endpoint = ["https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com"]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."gcr.io"]
|
|
|
|
endpoint = ["https://gcr.mirrors.ustc.edu.cn"]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"]
|
|
|
|
endpoint = ["https://gcr.mirrors.ustc.edu.cn/google-containers/"]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."quay.io"]
|
|
|
|
endpoint = ["https://quay.mirrors.ustc.edu.cn"]
|
2019-07-15 00:15:25 +08:00
|
|
|
{% endif %}
|
2021-04-19 00:00:55 +08:00
|
|
|
[plugins."io.containerd.grpc.v1.cri".image_decryption]
|
|
|
|
key_model = ""
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming]
|
2019-05-18 16:48:58 +08:00
|
|
|
tls_cert_file = ""
|
|
|
|
tls_key_file = ""
|
2021-04-19 00:00:55 +08:00
|
|
|
[plugins."io.containerd.internal.v1.opt"]
|
|
|
|
path = "/opt/containerd"
|
|
|
|
[plugins."io.containerd.internal.v1.restart"]
|
|
|
|
interval = "10s"
|
|
|
|
[plugins."io.containerd.metadata.v1.bolt"]
|
|
|
|
content_sharing_policy = "shared"
|
|
|
|
[plugins."io.containerd.monitor.v1.cgroups"]
|
|
|
|
no_prometheus = false
|
|
|
|
[plugins."io.containerd.runtime.v1.linux"]
|
2019-05-18 16:48:58 +08:00
|
|
|
shim = "containerd-shim"
|
|
|
|
runtime = "runc"
|
|
|
|
runtime_root = ""
|
|
|
|
no_shim = false
|
|
|
|
shim_debug = false
|
2021-04-19 00:00:55 +08:00
|
|
|
[plugins."io.containerd.runtime.v2.task"]
|
|
|
|
platforms = ["linux/amd64"]
|
|
|
|
[plugins."io.containerd.service.v1.diff-service"]
|
|
|
|
default = ["walking"]
|
|
|
|
[plugins."io.containerd.snapshotter.v1.devmapper"]
|
|
|
|
root_path = ""
|
|
|
|
pool_name = ""
|
|
|
|
base_image_size = ""
|
|
|
|
async_remove = false
|