@@ -32,21 +32,22 @@ storage_driver = "overlay"
32
32
#storage_option = [
33
33
#]
34
34
35
- # If set to false, in-memory locking will be used instead of file-based locking.
36
- # **Deprecated** this option will be removed in the future.
37
- file_locking = false
38
-
39
- # Path to the lock file.
40
- # **Deprecated** this option will be removed in the future.
41
- file_locking_path = "/run/crio.lock"
35
+ # The default log directory where all logs will go unless directly specified by
36
+ # the kubelet. The log directory specified must be an absolute directory.
37
+ log_dir = "/var/log/crio/pods"
42
38
39
+ # Location for CRI-O to lay down the version file
40
+ version_file = "/var/lib/crio/version"
43
41
44
42
# The crio.api table contains settings for the kubelet/gRPC interface.
45
43
[crio.api]
46
44
47
45
# Path to AF_LOCAL socket on which CRI-O will listen.
48
46
listen = "/var/run/crio/crio.sock"
49
47
48
+ # Host IP considered as the primary IP to use by CRI-O for things such as host network IP.
49
+ host_ip = ""
50
+
50
51
# IP address on which the stream server will listen.
51
52
stream_address = "127.0.0.1"
52
53
@@ -62,11 +63,11 @@ stream_enable_tls = false
62
63
stream_tls_cert = ""
63
64
64
65
# Path to the key file used to serve the encrypted stream. This file can
65
- # change, and CRI-O will automatically pick up the changes within 5 minutes.
66
+ # change and CRI-O will automatically pick up the changes within 5 minutes.
66
67
stream_tls_key = ""
67
68
68
69
# Path to the x509 CA(s) file used to verify and authenticate client
69
- # communication with the encrypted stream. This file can change, and CRI-O will
70
+ # communication with the encrypted stream. This file can change and CRI-O will
70
71
# automatically pick up the changes within 5 minutes.
71
72
stream_tls_ca = ""
72
73
@@ -95,6 +96,7 @@ default_runtime = "runc"
95
96
no_pivot = false
96
97
97
98
# Path to the conmon binary, used for monitoring the OCI runtime.
99
+ # Will be searched for using $PATH if empty.
98
100
conmon = "/usr/libexec/crio/conmon"
99
101
100
102
# Cgroup setting for conmon
@@ -116,7 +118,7 @@ seccomp_profile = ""
116
118
117
119
# Used to change the name of the default AppArmor profile of CRI-O. The default
118
120
# profile name is "crio-default-" followed by the version string of CRI-O.
119
- apparmor_profile = "crio-default-1.15.1 "
121
+ apparmor_profile = "crio-default-1.16.0 "
120
122
121
123
# Cgroup management implementation used for the runtime.
122
124
cgroup_manager = "cgroupfs"
@@ -192,6 +194,9 @@ container_exits_dir = "/var/run/crio/exits"
192
194
# Path to directory for container attach sockets.
193
195
container_attach_socket_dir = "/var/run/crio"
194
196
197
+ # The prefix to use for the source of the bind mounts.
198
+ bind_mount_prefix = ""
199
+
195
200
# If set to true, all containers will run in read-only mode.
196
201
read_only = false
197
202
@@ -200,9 +205,6 @@ read_only = false
200
205
# configuration reload.
201
206
log_level = "error"
202
207
203
- # The default log directory where all logs will go unless directly specified by the kubelet
204
- log_dir = "/var/log/crio/pods"
205
-
206
208
# The UID mappings for the user namespace of each container. A range is
207
209
# specified in the form containerUID:HostUID:Size. Multiple ranges must be
208
210
# separated by comma.
@@ -224,14 +226,44 @@ manage_network_ns_lifecycle = false
224
226
# The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes.
225
227
# The runtime to use is picked based on the runtime_handler provided by the CRI.
226
228
# If no runtime_handler is provided, the runtime will be picked based on the level
227
- # of trust of the workload.
229
+ # of trust of the workload. Each entry in the table should follow the format:
230
+ #
231
+ #[crio.runtime.runtimes.runtime-handler]
232
+ # runtime_path = "/path/to/the/executable"
233
+ # runtime_type = "oci"
234
+ # runtime_root = "/path/to/the/root"
235
+ #
236
+ # Where:
237
+ # - runtime-handler: name used to identify the runtime
238
+ # - runtime_path (optional, string): absolute path to the runtime executable in
239
+ # the host filesystem. If omitted, the runtime-handler identifier should match
240
+ # the runtime executable name, and the runtime executable should be placed
241
+ # in $PATH.
242
+ # - runtime_type (optional, string): type of runtime, one of: "oci", "vm". If
243
+ # omitted, an "oci" runtime is assumed.
244
+ # - runtime_root (optional, string): root directory for storage of containers
245
+ # state.
246
+
228
247
229
248
[crio.runtime.runtimes.runc]
230
249
runtime_path = "/usr/bin/runc"
231
250
runtime_type = "oci"
232
251
runtime_root = "/run/runc"
233
252
234
253
254
+ # Kata Containers is an OCI runtime, where containers are run inside lightweight
255
+ # VMs. Kata provides additional isolation towards the host, minimizing the host attack
256
+ # surface and mitigating the consequences of containers breakout.
257
+
258
+ # Kata Containers with the default configured VMM
259
+ #[crio.runtime.runtimes.kata-runtime]
260
+
261
+ # Kata Containers with the QEMU VMM
262
+ #[crio.runtime.runtimes.kata-qemu]
263
+
264
+ # Kata Containers with the Firecracker VMM
265
+ #[crio.runtime.runtimes.kata-fc]
266
+
235
267
# The crio.image table contains settings pertaining to the management of OCI images.
236
268
#
237
269
# CRI-O reads its configured registries defaults from the system wide
@@ -258,7 +290,9 @@ pause_image = "k8s.gcr.io/pause:3.1"
258
290
pause_image_auth_file = ""
259
291
260
292
# The command to run to have a container stay in the paused state.
261
- # This option supports live configuration reload.
293
+ # When explicitly set to "", it will fallback to the entrypoint and command
294
+ # specified in the pause image. When commented out, it will fallback to the
295
+ # default: "/pause". This option supports live configuration reload.
262
296
pause_command = "/pause"
263
297
264
298
# Path to the file which decides what sort of policy we use when deciding
@@ -268,6 +302,11 @@ pause_command = "/pause"
268
302
# refer to containers-policy.json(5) for more details.
269
303
signature_policy = ""
270
304
305
+ # List of registries to skip TLS verification for pulling images. Please
306
+ # consider configuring the registries via /etc/containers/registries.conf before
307
+ # changing them here.
308
+ #insecure_registries = "[]"
309
+
271
310
# Controls how image volumes are handled. The valid values are mkdir, bind and
272
311
# ignore; the latter will ignore volumes entirely.
273
312
image_volumes = "mkdir"
@@ -293,3 +332,12 @@ network_dir = "/etc/cni/net.d/"
293
332
plugin_dirs = [
294
333
"/opt/cni/bin/",
295
334
]
335
+
336
+ # A necessary configuration for Prometheus based metrics retrieval
337
+ [crio.metrics]
338
+
339
+ # Globally enable or disable metrics support.
340
+ enable_metrics = true
341
+
342
+ # The port on which the metrics server will listen.
343
+ metrics_port = 9090
0 commit comments