/
config.toml
103 lines (98 loc) · 3.15 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
root = "/var/lib/containerd"
state = "/run/containerd"
oom_score = 0
[grpc]
address = "/run/containerd/containerd.sock"
uid = 0
gid = 0
max_recv_message_size = 16777216
max_send_message_size = 16777216
[debug]
address = ""
uid = 0
gid = 0
level = ""
[metrics]
address = ""
grpc_histogram = false
[cgroup]
path = ""
[plugins]
[plugins.cgroups]
no_prometheus = false
[plugins.cri]
stream_server_address = "127.0.0.1"
stream_server_port = "0"
enable_selinux = false
sandbox_image = "{{ sandbox_image }}"
stats_collect_period = 10
systemd_cgroup = false
enable_tls_streaming = false
max_container_log_line_size = 16384
[plugins.cri.containerd]
no_pivot = false
[plugins.cri.containerd.default_runtime]
runtime_type = "io.containerd.runtime.v1.linux"
{% if untrusted %}
[plugins.cri.containerd.untrusted_workload_runtime]
runtime_type= "io.containerd.{{ untrusted_name }}.v2"
{% endif %}
[plugins.cri.containerd.runtimes]
[plugins.cri.containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v1"
{% if untrusted %}
[plugins.cri.containerd.runtimes.{{ untrusted_name }}]
runtime_type= "io.containerd.{{ untrusted_name }}.v2"
[plugins.cri.containerd.runtimes.{{ untrusted_name }}.options]
Runtime = "{{ untrusted_binary }}"
RuntimeRoot = "{{ untrusted_path }}"
{% endif %}
[plugins.cri.cni]
bin_dir = "/opt/cni/bin"
conf_dir = "/etc/cni/net.d"
conf_template = ""
[plugins.cri.registry]
[plugins.cri.registry.mirrors]
[plugins.cri.registry.mirrors."docker.io"]
endpoint = ["https://registry-1.docker.io"]
{% if custom_registries %}
[plugins.cri.registry.auths]
{% for registry in custom_registries %}
{% if registry.username and registry.password %}
[plugins.cri.registry.auths."{{ registry.url }}"]
username = "{{ registry.username }}"
password = "{{ registry.password }}"
{% endif %}
{% endfor %}
[plugins.cri.registry.configs]
{% for registry in custom_registries %}
{% if registry.ca or registry.cert or registry.key or registry.insecure_skip_verify %}
[plugins.cri.registry.configs."{{ registry.url }}".tls]
ca_file = "{{ registry.ca if registry.ca else '' }}"
cert_file = "{{ registry.cert if registry.cert else '' }}"
key_file = "{{ registry.key if registry.key else '' }}"
insecure_skip_verify = {{ "true" if registry.insecure_skip_verify else "false" }}
{% endif %}
{% endfor %}
{% endif %}
[plugins.cri.x509_key_pair_streaming]
tls_cert_file = ""
tls_key_file = ""
[plugins.diff-service]
default = ["walking"]
[plugins.linux]
shim = "{{ shim }}"
runtime = "{{ runtime }}"
runtime_root = ""
no_shim = false
shim_debug = false
[plugins.opt]
path = "/opt/containerd"
[plugins.restart]
interval = "10s"
[plugins.scheduler]
pause_threshold = 0.02
deletion_threshold = 0
mutation_threshold = 100
schedule_delay = "0s"
startup_delay = "100ms"