Skip to content

Commit 665a907

Browse files
Split out the containerd config files:
There is one file that linuxkit/init uses to configure the running of containerd and another that containerd uses to configure itself. Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 5a61833 commit 665a907

File tree

2 files changed

+250
-247
lines changed

2 files changed

+250
-247
lines changed
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
# default containerd configuration file, generated via `containerd config default`
2+
version = 3
3+
root = '/var/lib/containerd'
4+
state = '/run/containerd'
5+
temp = ''
6+
disabled_plugins = ["io.containerd.grpc.v1.cri","io.containerd.internal.v1.opt"]
7+
required_plugins = []
8+
oom_score = 0
9+
imports = []
10+
11+
[grpc]
12+
address = '/run/containerd/containerd.sock'
13+
tcp_address = ''
14+
tcp_tls_ca = ''
15+
tcp_tls_cert = ''
16+
tcp_tls_key = ''
17+
uid = 0
18+
gid = 0
19+
max_recv_message_size = 16777216
20+
max_send_message_size = 16777216
21+
22+
[ttrpc]
23+
address = ''
24+
uid = 0
25+
gid = 0
26+
27+
[debug]
28+
address = ''
29+
uid = 0
30+
gid = 0
31+
level = ''
32+
format = ''
33+
34+
[metrics]
35+
address = ''
36+
grpc_histogram = false
37+
38+
[plugins]
39+
[plugins.'io.containerd.cri.v1.images']
40+
snapshotter = 'overlayfs'
41+
disable_snapshot_annotations = true
42+
discard_unpacked_layers = false
43+
max_concurrent_downloads = 3
44+
concurrent_layer_fetch_buffer = 0
45+
image_pull_progress_timeout = '5m0s'
46+
image_pull_with_sync_fs = false
47+
stats_collect_period = 10
48+
use_local_image_pull = false
49+
50+
[plugins.'io.containerd.cri.v1.images'.pinned_images]
51+
sandbox = 'registry.k8s.io/pause:3.10'
52+
53+
[plugins.'io.containerd.cri.v1.images'.registry]
54+
config_path = ''
55+
56+
[plugins.'io.containerd.cri.v1.images'.image_decryption]
57+
key_model = 'node'
58+
59+
[plugins.'io.containerd.cri.v1.runtime']
60+
enable_selinux = false
61+
selinux_category_range = 1024
62+
max_container_log_line_size = 16384
63+
disable_apparmor = false
64+
restrict_oom_score_adj = false
65+
disable_proc_mount = false
66+
unset_seccomp_profile = ''
67+
tolerate_missing_hugetlb_controller = true
68+
disable_hugetlb_controller = true
69+
device_ownership_from_security_context = false
70+
ignore_image_defined_volumes = false
71+
netns_mounts_under_state_dir = false
72+
enable_unprivileged_ports = true
73+
enable_unprivileged_icmp = true
74+
enable_cdi = true
75+
cdi_spec_dirs = ['/etc/cdi', '/var/run/cdi']
76+
drain_exec_sync_io_timeout = '0s'
77+
ignore_deprecation_warnings = []
78+
79+
[plugins.'io.containerd.cri.v1.runtime'.containerd]
80+
default_runtime_name = 'runc'
81+
ignore_blockio_not_enabled_errors = false
82+
ignore_rdt_not_enabled_errors = false
83+
84+
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes]
85+
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc]
86+
runtime_type = 'io.containerd.runc.v2'
87+
runtime_path = ''
88+
pod_annotations = []
89+
container_annotations = []
90+
privileged_without_host_devices = false
91+
privileged_without_host_devices_all_devices_allowed = false
92+
cgroup_writable = false
93+
base_runtime_spec = ''
94+
cni_conf_dir = ''
95+
cni_max_conf_num = 0
96+
snapshotter = ''
97+
sandboxer = 'podsandbox'
98+
io_type = ''
99+
100+
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc.options]
101+
BinaryName = ''
102+
CriuImagePath = ''
103+
CriuWorkPath = ''
104+
IoGid = 0
105+
IoUid = 0
106+
NoNewKeyring = false
107+
Root = ''
108+
ShimCgroup = ''
109+
110+
[plugins.'io.containerd.cri.v1.runtime'.cni]
111+
bin_dir = ''
112+
bin_dirs = ['/opt/cni/bin']
113+
conf_dir = '/etc/cni/net.d'
114+
max_conf_num = 1
115+
setup_serially = false
116+
conf_template = ''
117+
ip_pref = ''
118+
use_internal_loopback = false
119+
120+
[plugins.'io.containerd.differ.v1.erofs']
121+
mkfs_options = []
122+
123+
[plugins.'io.containerd.gc.v1.scheduler']
124+
pause_threshold = 0.02
125+
deletion_threshold = 0
126+
mutation_threshold = 100
127+
schedule_delay = '0s'
128+
startup_delay = '100ms'
129+
130+
[plugins.'io.containerd.grpc.v1.cri']
131+
disable_tcp_service = true
132+
stream_server_address = '127.0.0.1'
133+
stream_server_port = '0'
134+
stream_idle_timeout = '4h0m0s'
135+
enable_tls_streaming = false
136+
137+
[plugins.'io.containerd.grpc.v1.cri'.x509_key_pair_streaming]
138+
tls_cert_file = ''
139+
tls_key_file = ''
140+
141+
[plugins.'io.containerd.image-verifier.v1.bindir']
142+
bin_dir = '/opt/containerd/image-verifier/bin'
143+
max_verifiers = 10
144+
per_verifier_timeout = '10s'
145+
146+
[plugins.'io.containerd.internal.v1.opt']
147+
path = '/opt/containerd'
148+
149+
[plugins.'io.containerd.internal.v1.tracing']
150+
151+
[plugins.'io.containerd.metadata.v1.bolt']
152+
content_sharing_policy = 'shared'
153+
no_sync = false
154+
155+
[plugins.'io.containerd.monitor.container.v1.restart']
156+
interval = '10s'
157+
158+
[plugins.'io.containerd.monitor.task.v1.cgroups']
159+
no_prometheus = false
160+
161+
[plugins.'io.containerd.nri.v1.nri']
162+
disable = false
163+
socket_path = '/var/run/nri/nri.sock'
164+
plugin_path = '/opt/nri/plugins'
165+
plugin_config_path = '/etc/nri/conf.d'
166+
plugin_registration_timeout = '5s'
167+
plugin_request_timeout = '2s'
168+
disable_connections = false
169+
170+
[plugins.'io.containerd.runtime.v2.task']
171+
platforms = ['linux/amd64']
172+
173+
[plugins.'io.containerd.service.v1.diff-service']
174+
default = ['walking']
175+
sync_fs = false
176+
177+
[plugins.'io.containerd.service.v1.tasks-service']
178+
blockio_config_file = ''
179+
rdt_config_file = ''
180+
181+
[plugins.'io.containerd.shim.v1.manager']
182+
env = []
183+
184+
[plugins.'io.containerd.snapshotter.v1.blockfile']
185+
root_path = ''
186+
scratch_file = ''
187+
fs_type = ''
188+
mount_options = []
189+
recreate_scratch = false
190+
191+
[plugins.'io.containerd.snapshotter.v1.btrfs']
192+
root_path = ''
193+
194+
[plugins.'io.containerd.snapshotter.v1.erofs']
195+
root_path = ''
196+
ovl_mount_options = []
197+
enable_fsverity = false
198+
199+
[plugins.'io.containerd.snapshotter.v1.native']
200+
root_path = ''
201+
202+
[plugins.'io.containerd.snapshotter.v1.overlayfs']
203+
root_path = ''
204+
upperdir_label = false
205+
sync_remove = false
206+
slow_chown = false
207+
mount_options = []
208+
209+
[plugins.'io.containerd.snapshotter.v1.zfs']
210+
root_path = ''
211+
212+
[plugins.'io.containerd.tracing.processor.v1.otlp']
213+
214+
[plugins.'io.containerd.transfer.v1.local']
215+
max_concurrent_downloads = 3
216+
concurrent_layer_fetch_buffer = 0
217+
max_concurrent_uploaded_layers = 3
218+
check_platform_supported = false
219+
config_path = ''
220+
221+
[cgroup]
222+
path = ''
223+
224+
[timeouts]
225+
'io.containerd.timeout.bolt.open' = '0s'
226+
'io.containerd.timeout.cri.defercleanup' = '1m0s'
227+
'io.containerd.timeout.metrics.shimstats' = '2s'
228+
'io.containerd.timeout.shim.cleanup' = '5s'
229+
'io.containerd.timeout.shim.load' = '5s'
230+
'io.containerd.timeout.shim.shutdown' = '3s'
231+
'io.containerd.timeout.task.state' = '2s'
232+
233+
[stream_processors]
234+
[stream_processors.'io.containerd.ocicrypt.decoder.v1.tar']
235+
accepts = ['application/vnd.oci.image.layer.v1.tar+encrypted']
236+
returns = 'application/vnd.oci.image.layer.v1.tar'
237+
path = 'ctd-decoder'
238+
args = ['--decryption-keys-path', '/etc/containerd/ocicrypt/keys']
239+
env = ['OCICRYPT_KEYPROVIDER_CONFIG=/etc/containerd/ocicrypt/ocicrypt_keyprovider.conf']
240+
241+
[stream_processors.'io.containerd.ocicrypt.decoder.v1.tar.gzip']
242+
accepts = ['application/vnd.oci.image.layer.v1.tar+gzip+encrypted']
243+
returns = 'application/vnd.oci.image.layer.v1.tar+gzip'
244+
path = 'ctd-decoder'
245+
args = ['--decryption-keys-path', '/etc/containerd/ocicrypt/keys']
246+
env = ['OCICRYPT_KEYPROVIDER_CONFIG=/etc/containerd/ocicrypt/ocicrypt_keyprovider.conf']

0 commit comments

Comments
 (0)