Skip to content

Commit 5a6d14c

Browse files
authored
Merge pull request #5970 from afbjorklund/crio-v1.16.0
cri-o v1.16.0
2 parents 0bfd81b + 876e32e commit 5a6d14c

File tree

8 files changed

+164
-51
lines changed

8 files changed

+164
-51
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Locally computed
22
sha256 4f978a59c6ee516f7e3febfb3b0360a17d1be2c283313e1aeb27adcb8c8f9166 dde3ccf93f01ce5a3e0f7a2c97053697cc3ed152.tar.gz
33
sha256 75fad6e66b43c5039719edbd82ba072723aea6a9d4d8be4e7ac1c245a291ab1b 8455ce1ef385120deb827d0f0588c04357bad4c4.tar.gz
4+
sha256 6c9bf278ae6e125a39f1ae419e5bd314162a743f6587d70b1b6be095ac32b9af eb5fa88c26fde5ce1e3f8a1d2a8a9498b2d7dbe6.tar.gz

deploy/iso/minikube-iso/package/conmon-master/conmon-master.mk

+3-9
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,21 @@
44
#
55
################################################################################
66

7-
# HEAD as of 2019-06-13
8-
CONMON_MASTER_VERSION = 8455ce1ef385120deb827d0f0588c04357bad4c4
7+
# HEAD as of 2019-11-11
8+
CONMON_MASTER_VERSION = eb5fa88c26fde5ce1e3f8a1d2a8a9498b2d7dbe6
99
CONMON_MASTER_SITE = https://github.com/containers/conmon/archive
1010
CONMON_MASTER_SOURCE = $(CONMON_MASTER_VERSION).tar.gz
1111
CONMON_MASTER_LICENSE = Apache-2.0
1212
CONMON_MASTER_LICENSE_FILES = LICENSE
1313

1414
CONMON_MASTER_DEPENDENCIES = host-pkgconf
1515

16-
define CONMON_MASTER_PATCH_PKGCONFIG
17-
sed -e 's/pkg-config/$$(PKG_CONFIG)/g' -i $(@D)/Makefile
18-
endef
19-
20-
CONMON_MASTER_POST_PATCH_HOOKS += CONMON_MASTER_PATCH_PKGCONFIG
21-
2216
define CONMON_MASTER_BUILD_CMDS
2317
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) GIT_COMMIT=$(CONMON_MASTER_VERSION) PREFIX=/usr
2418
endef
2519

2620
define CONMON_MASTER_INSTALL_TARGET_CMDS
27-
# crio conmon is installed by the crio package, so don't install it here
21+
$(INSTALL) -Dm755 $(@D)/bin/conmon $(TARGET_DIR)/usr/libexec/crio/conmon
2822
$(INSTALL) -Dm755 $(@D)/bin/conmon $(TARGET_DIR)/usr/libexec/podman/conmon
2923
endef
3024

deploy/iso/minikube-iso/package/crio-bin/crio-bin.hash

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ sha256 1f6f72b1f89d4286b2d5b54a48f4d5ed4c0c01065d484635dcb343a706feb743 v1.14.1.
88
sha256 f7041a92e2d3a4c341be8df58f1076ba57ecb5daa02b6c65e652530c5f242739 v1.15.0.tar.gz
99
sha256 6218a99877da9b9895e0088944731f5384803c15628d4b3c6b40ba1ddd39e052 v1.15.1.tar.gz
1010
sha256 70d4c746fe207422c78420dc4239768f485eea639a38c993c02872ec6305dd1d v1.15.2.tar.gz
11+
sha256 05f9614c4d5970b4662499b84c270b0ab953596ee863dcd09c9dc7a2d2f09789 v1.16.0.tar.gz

deploy/iso/minikube-iso/package/crio-bin/crio-bin.mk

+8-7
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
#
55
################################################################################
66

7-
CRIO_BIN_VERSION = v1.15.2
8-
CRIO_BIN_COMMIT = b7316701c17ebc7901d10a716f15e66008c52525
7+
CRIO_BIN_VERSION = v1.16.0
8+
CRIO_BIN_COMMIT = fa99ff4ae2aa45115bf3c6bb33db07191db2518e
99
CRIO_BIN_SITE = https://github.com/cri-o/cri-o/archive
1010
CRIO_BIN_SOURCE = $(CRIO_BIN_VERSION).tar.gz
1111
CRIO_BIN_DEPENDENCIES = host-go libgpgme
1212
CRIO_BIN_GOPATH = $(@D)/_output
1313
CRIO_BIN_ENV = \
1414
CGO_ENABLED=1 \
15+
GO111MODULE=off \
1516
GOPATH="$(CRIO_BIN_GOPATH)" \
1617
GOBIN="$(CRIO_BIN_GOPATH)/bin" \
1718
PATH=$(CRIO_BIN_GOPATH)/bin:$(BR_PATH)
@@ -25,8 +26,8 @@ endef
2526
define CRIO_BIN_CONFIGURE_CMDS
2627
mkdir -p $(CRIO_BIN_GOPATH)/src/github.com/cri-o
2728
ln -sf $(@D) $(CRIO_BIN_GOPATH)/src/github.com/cri-o/cri-o
28-
# Copy pre-generated conmon/config.h - see <https://github.com/cri-o/cri-o/issues/2575>
29-
cp $(CRIO_BIN_PKGDIR)/conmon-config.h $(@D)/conmon/config.h
29+
# disable the "automatic" go module detection
30+
sed -e 's/go help mod/false/' -i $(@D)/Makefile
3031
endef
3132

3233
define CRIO_BIN_BUILD_CMDS
@@ -41,9 +42,6 @@ define CRIO_BIN_INSTALL_TARGET_CMDS
4142
$(INSTALL) -Dm755 \
4243
$(@D)/bin/crio \
4344
$(TARGET_DIR)/usr/bin/crio
44-
$(INSTALL) -Dm755 \
45-
$(@D)/bin/conmon \
46-
$(TARGET_DIR)/usr/libexec/crio/conmon
4745
$(INSTALL) -Dm755 \
4846
$(@D)/bin/pause \
4947
$(TARGET_DIR)/usr/libexec/crio/pause
@@ -66,6 +64,9 @@ define CRIO_BIN_INSTALL_INIT_SYSTEMD
6664
$(INSTALL) -Dm644 \
6765
$(CRIO_BIN_PKGDIR)/crio.service \
6866
$(TARGET_DIR)/usr/lib/systemd/system/crio.service
67+
$(INSTALL) -Dm644 \
68+
$(CRIO_BIN_PKGDIR)/crio-wipe.service \
69+
$(TARGET_DIR)/usr/lib/systemd/system/crio-wipe.service
6970
$(call link-service,crio.service)
7071
$(call link-service,crio-shutdown.service)
7172
endef
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[Unit]
2+
Description=CRI-O Auto Update Script
3+
Before=crio.service
4+
RequiresMountsFor=/var/lib/containers
5+
6+
[Service]
7+
EnvironmentFile=-/etc/sysconfig/crio
8+
EnvironmentFile=-/etc/sysconfig/crio.minikube
9+
EnvironmentFile=/var/run/minikube/env
10+
ExecStart=/usr/bin/crio \
11+
$CRIO_OPTIONS \
12+
$CRIO_MINIKUBE_OPTIONS \
13+
wipe
14+
15+
Type=oneshot
16+
17+
[Install]
18+
WantedBy=multi-user.target

deploy/iso/minikube-iso/package/crio-bin/crio.conf

+63-15
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,22 @@ storage_driver = "overlay"
3232
#storage_option = [
3333
#]
3434

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"
4238

39+
# Location for CRI-O to lay down the version file
40+
version_file = "/var/lib/crio/version"
4341

4442
# The crio.api table contains settings for the kubelet/gRPC interface.
4543
[crio.api]
4644

4745
# Path to AF_LOCAL socket on which CRI-O will listen.
4846
listen = "/var/run/crio/crio.sock"
4947

48+
# Host IP considered as the primary IP to use by CRI-O for things such as host network IP.
49+
host_ip = ""
50+
5051
# IP address on which the stream server will listen.
5152
stream_address = "127.0.0.1"
5253

@@ -62,11 +63,11 @@ stream_enable_tls = false
6263
stream_tls_cert = ""
6364

6465
# 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.
6667
stream_tls_key = ""
6768

6869
# 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
7071
# automatically pick up the changes within 5 minutes.
7172
stream_tls_ca = ""
7273

@@ -95,6 +96,7 @@ default_runtime = "runc"
9596
no_pivot = false
9697

9798
# Path to the conmon binary, used for monitoring the OCI runtime.
99+
# Will be searched for using $PATH if empty.
98100
conmon = "/usr/libexec/crio/conmon"
99101

100102
# Cgroup setting for conmon
@@ -116,7 +118,7 @@ seccomp_profile = ""
116118

117119
# Used to change the name of the default AppArmor profile of CRI-O. The default
118120
# 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"
120122

121123
# Cgroup management implementation used for the runtime.
122124
cgroup_manager = "cgroupfs"
@@ -192,6 +194,9 @@ container_exits_dir = "/var/run/crio/exits"
192194
# Path to directory for container attach sockets.
193195
container_attach_socket_dir = "/var/run/crio"
194196

197+
# The prefix to use for the source of the bind mounts.
198+
bind_mount_prefix = ""
199+
195200
# If set to true, all containers will run in read-only mode.
196201
read_only = false
197202

@@ -200,9 +205,6 @@ read_only = false
200205
# configuration reload.
201206
log_level = "error"
202207

203-
# The default log directory where all logs will go unless directly specified by the kubelet
204-
log_dir = "/var/log/crio/pods"
205-
206208
# The UID mappings for the user namespace of each container. A range is
207209
# specified in the form containerUID:HostUID:Size. Multiple ranges must be
208210
# separated by comma.
@@ -224,14 +226,44 @@ manage_network_ns_lifecycle = false
224226
# The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes.
225227
# The runtime to use is picked based on the runtime_handler provided by the CRI.
226228
# 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+
228247

229248
[crio.runtime.runtimes.runc]
230249
runtime_path = "/usr/bin/runc"
231250
runtime_type = "oci"
232251
runtime_root = "/run/runc"
233252

234253

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+
235267
# The crio.image table contains settings pertaining to the management of OCI images.
236268
#
237269
# CRI-O reads its configured registries defaults from the system wide
@@ -258,7 +290,9 @@ pause_image = "k8s.gcr.io/pause:3.1"
258290
pause_image_auth_file = ""
259291

260292
# 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.
262296
pause_command = "/pause"
263297

264298
# Path to the file which decides what sort of policy we use when deciding
@@ -268,6 +302,11 @@ pause_command = "/pause"
268302
# refer to containers-policy.json(5) for more details.
269303
signature_policy = ""
270304

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+
271310
# Controls how image volumes are handled. The valid values are mkdir, bind and
272311
# ignore; the latter will ignore volumes entirely.
273312
image_volumes = "mkdir"
@@ -293,3 +332,12 @@ network_dir = "/etc/cni/net.d/"
293332
plugin_dirs = [
294333
"/opt/cni/bin/",
295334
]
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

Comments
 (0)