未验证 提交 05de8254 编写于 作者: A Anders Björklund 提交者: GitHub

Merge pull request #8923 from afbjorklund/crio-v1.18.3

Upgrade crio to 1.18.3 (merge after buildroot2020)
...@@ -13,3 +13,7 @@ sha256 57e1ee990ef2d5af8b32c33a21b4998682608e3556dcf1d3349666f55e7d95b9 v1.16.1. ...@@ -13,3 +13,7 @@ sha256 57e1ee990ef2d5af8b32c33a21b4998682608e3556dcf1d3349666f55e7d95b9 v1.16.1.
sha256 23a797762e4544ee7c171ef138cfc1141a3f0acc2838d9965c2a58e53b16c3ae v1.17.0.tar.gz sha256 23a797762e4544ee7c171ef138cfc1141a3f0acc2838d9965c2a58e53b16c3ae v1.17.0.tar.gz
sha256 7967e9218fdfb59d6005a9e19c1668469bc5566c2a35927cffe7de8656bb22c7 v1.17.1.tar.gz sha256 7967e9218fdfb59d6005a9e19c1668469bc5566c2a35927cffe7de8656bb22c7 v1.17.1.tar.gz
sha256 336f5c275e260eaae8187e7250fb960441e8dc90615729354d3c04e699870982 v1.17.3.tar.gz sha256 336f5c275e260eaae8187e7250fb960441e8dc90615729354d3c04e699870982 v1.17.3.tar.gz
sha256 865ded95aceb3a33a391b252522682de6b37b39498704c490b3a321dbefaafcb v1.18.0.tar.gz
sha256 794ddc36c2a20fde91fc6cc2c6f02ebdaea85c69b51b67f3994090dbbdbc2a50 v1.18.1.tar.gz
sha256 25dc558fbabc987bd58c7eab5230121b258a7b0eb34a49dc6595f1c6f3969116 v1.18.2.tar.gz
sha256 d5c6442e3990938badc966cdd1eb9ebe2fc11345452c233aa0d87ca38fbeed81 v1.18.3.tar.gz
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
# #
################################################################################ ################################################################################
CRIO_BIN_VERSION = v1.17.3 CRIO_BIN_VERSION = v1.18.3
CRIO_BIN_COMMIT = 1b192d16cb1cd04ee8fbf60ae2c06bccc5eac5c8 CRIO_BIN_COMMIT = 61de18161fb4ccda720768c001713592b5a04e46
CRIO_BIN_SITE = https://github.com/cri-o/cri-o/archive CRIO_BIN_SITE = https://github.com/cri-o/cri-o/archive
CRIO_BIN_SOURCE = $(CRIO_BIN_VERSION).tar.gz CRIO_BIN_SOURCE = $(CRIO_BIN_VERSION).tar.gz
CRIO_BIN_DEPENDENCIES = host-go libgpgme CRIO_BIN_DEPENDENCIES = host-go libgpgme
...@@ -33,7 +33,7 @@ endef ...@@ -33,7 +33,7 @@ endef
define CRIO_BIN_BUILD_CMDS define CRIO_BIN_BUILD_CMDS
mkdir -p $(@D)/bin mkdir -p $(@D)/bin
$(CRIO_BIN_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) GIT_COMMIT=$(CRIO_BIN_COMMIT) PREFIX=/usr binaries $(CRIO_BIN_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) COMMIT_NO=$(CRIO_BIN_COMMIT) PREFIX=/usr binaries
endef endef
define CRIO_BIN_INSTALL_TARGET_CMDS define CRIO_BIN_INSTALL_TARGET_CMDS
......
...@@ -35,8 +35,15 @@ storage_driver = "overlay" ...@@ -35,8 +35,15 @@ storage_driver = "overlay"
# the kubelet. The log directory specified must be an absolute directory. # the kubelet. The log directory specified must be an absolute directory.
log_dir = "/var/log/crio/pods" log_dir = "/var/log/crio/pods"
# Location for CRI-O to lay down the version file # Location for CRI-O to lay down the temporary version file.
version_file = "/var/lib/crio/version" # It is used to check if crio wipe should wipe containers, which should
# always happen on a node reboot
version_file = "/var/run/crio/version"
# Location for CRI-O to lay down the persistent version file.
# It is used to check if crio wipe should wipe images, which should
# only happen when CRI-O has been upgraded
version_file_persist = "/var/lib/crio/version"
# The crio.api table contains settings for the kubelet/gRPC interface. # The crio.api table contains settings for the kubelet/gRPC interface.
[crio.api] [crio.api]
...@@ -44,13 +51,11 @@ version_file = "/var/lib/crio/version" ...@@ -44,13 +51,11 @@ version_file = "/var/lib/crio/version"
# Path to AF_LOCAL socket on which CRI-O will listen. # Path to AF_LOCAL socket on which CRI-O will listen.
listen = "/var/run/crio/crio.sock" listen = "/var/run/crio/crio.sock"
# Host IP considered as the primary IP to use by CRI-O for things such as host network IP.
host_ip = ""
# IP address on which the stream server will listen. # IP address on which the stream server will listen.
stream_address = "127.0.0.1" stream_address = "127.0.0.1"
# The port on which the stream server will listen. # The port on which the stream server will listen. If the port is set to "0", then
# CRI-O will allocate a random free port number.
stream_port = "0" stream_port = "0"
# Enable encrypted TLS transport of the stream server. # Enable encrypted TLS transport of the stream server.
...@@ -94,6 +99,10 @@ default_runtime = "runc" ...@@ -94,6 +99,10 @@ default_runtime = "runc"
# If true, the runtime will not use pivot_root, but instead use MS_MOVE. # If true, the runtime will not use pivot_root, but instead use MS_MOVE.
no_pivot = false no_pivot = false
# decryption_keys_path is the path where the keys required for
# image decryption are stored. This option supports live configuration reload.
decryption_keys_path = "/etc/crio/keys/"
# Path to the conmon binary, used for monitoring the OCI runtime. # Path to the conmon binary, used for monitoring the OCI runtime.
# Will be searched for using $PATH if empty. # Will be searched for using $PATH if empty.
conmon = "/usr/libexec/crio/conmon" conmon = "/usr/libexec/crio/conmon"
...@@ -107,17 +116,26 @@ conmon_env = [ ...@@ -107,17 +116,26 @@ conmon_env = [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
] ]
# Additional environment variables to set for all the
# containers. These are overridden if set in the
# container image spec or in the container runtime configuration.
default_env = [
]
# If true, SELinux will be used for pod separation on the host. # If true, SELinux will be used for pod separation on the host.
selinux = false selinux = false
# Path to the seccomp.json profile which is used as the default seccomp profile # Path to the seccomp.json profile which is used as the default seccomp profile
# for the runtime. If not specified, then the internal default seccomp profile # for the runtime. If not specified, then the internal default seccomp profile
# will be used. # will be used. This option supports live configuration reload.
seccomp_profile = "" seccomp_profile = ""
# Used to change the name of the default AppArmor profile of CRI-O. The default # Used to change the name of the default AppArmor profile of CRI-O. The default
# profile name is "crio-default-" followed by the version string of CRI-O. # profile name is "crio-default". This profile only takes effect if the user
apparmor_profile = "crio-default-1.16.1" # does not specify a profile via the Kubernetes Pod's metadata annotation. If
# the profile is set to "unconfined", then this equals to disabling AppArmor.
# This option supports live configuration reload.
apparmor_profile = "crio-default"
# Cgroup management implementation used for the runtime. # Cgroup management implementation used for the runtime.
cgroup_manager = "systemd" cgroup_manager = "systemd"
...@@ -126,17 +144,15 @@ cgroup_manager = "systemd" ...@@ -126,17 +144,15 @@ cgroup_manager = "systemd"
# only the capabilities defined in the containers json file by the user/kube # only the capabilities defined in the containers json file by the user/kube
# will be added. # will be added.
default_capabilities = [ default_capabilities = [
"CHOWN", "CHOWN",
"DAC_OVERRIDE", "DAC_OVERRIDE",
"FSETID", "FSETID",
"FOWNER", "FOWNER",
"NET_RAW", "SETGID",
"SETGID", "SETUID",
"SETUID", "SETPCAP",
"SETPCAP", "NET_BIND_SERVICE",
"NET_BIND_SERVICE", "KILL",
"SYS_CHROOT",
"KILL",
] ]
# List of default sysctls. If it is empty or commented out, only the sysctls # List of default sysctls. If it is empty or commented out, only the sysctls
...@@ -151,8 +167,10 @@ default_sysctls = [ ...@@ -151,8 +167,10 @@ default_sysctls = [
additional_devices = [ additional_devices = [
] ]
# Path to OCI hooks directories for automatically executed hooks. # Path to OCI hooks directories for automatically executed hooks. If one of the
# directories does not exist, then CRI-O will automatically skip them.
hooks_dir = [ hooks_dir = [
"/usr/share/containers/oci/hooks.d",
] ]
# List of default mounts for each container. **Deprecated:** this option will # List of default mounts for each container. **Deprecated:** this option will
...@@ -200,9 +218,13 @@ bind_mount_prefix = "" ...@@ -200,9 +218,13 @@ bind_mount_prefix = ""
read_only = false read_only = false
# Changes the verbosity of the logs based on the level it is set to. Options # Changes the verbosity of the logs based on the level it is set to. Options
# are fatal, panic, error, warn, info, and debug. This option supports live # are fatal, panic, error, warn, info, debug and trace. This option supports
# configuration reload. # live configuration reload.
log_level = "error" log_level = "info"
# Filter the log messages by the provided regular expression.
# This option supports live configuration reload.
log_filter = ""
# The UID mappings for the user namespace of each container. A range is # The UID mappings for the user namespace of each container. A range is
# specified in the form containerUID:HostUID:Size. Multiple ranges must be # specified in the form containerUID:HostUID:Size. Multiple ranges must be
...@@ -215,12 +237,23 @@ uid_mappings = "" ...@@ -215,12 +237,23 @@ uid_mappings = ""
gid_mappings = "" gid_mappings = ""
# The minimal amount of time in seconds to wait before issuing a timeout # The minimal amount of time in seconds to wait before issuing a timeout
# regarding the proper termination of the container. # regarding the proper termination of the container. The lowest possible
ctr_stop_timeout = 0 # value is 30s, whereas lower values are not considered by CRI-O.
ctr_stop_timeout = 30
# **DEPRECATED** this option is being replaced by manage_ns_lifecycle, which is described below.
# manage_network_ns_lifecycle = false
# ManageNetworkNSLifecycle determines whether we pin and remove network namespace # manage_ns_lifecycle determines whether we pin and remove namespaces
# and manage its lifecycle. # and manage their lifecycle
manage_network_ns_lifecycle = false manage_ns_lifecycle = false
# The directory where the state of the managed namespaces gets tracked.
# Only used when manage_ns_lifecycle is true.
namespaces_dir = "/var/run"
# pinns_path is the path to find the pinns binary, which is needed to manage namespace lifecycle
pinns_path = "/usr/bin/pinns"
# The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes. # The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes.
# The runtime to use is picked based on the runtime_handler provided by the CRI. # The runtime to use is picked based on the runtime_handler provided by the CRI.
...@@ -281,7 +314,7 @@ global_auth_file = "" ...@@ -281,7 +314,7 @@ global_auth_file = ""
# The image used to instantiate infra containers. # The image used to instantiate infra containers.
# This option supports live configuration reload. # This option supports live configuration reload.
pause_image = "k8s.gcr.io/pause:3.1" pause_image = "k8s.gcr.io/pause:3.2"
# The path to a file containing credentials specific for pulling the pause_image from # The path to a file containing credentials specific for pulling the pause_image from
# above. The file is similar to that of /var/lib/kubelet/config.json # above. The file is similar to that of /var/lib/kubelet/config.json
...@@ -324,6 +357,10 @@ registries = [ ...@@ -324,6 +357,10 @@ registries = [
# CNI plugins. # CNI plugins.
[crio.network] [crio.network]
# The default CNI network name to be selected. If not set or "", then
# CRI-O will pick-up the first one found in network_dir.
# cni_default_network = ""
# Path to the directory where CNI configuration files are located. # Path to the directory where CNI configuration files are located.
network_dir = "/etc/cni/net.d/" network_dir = "/etc/cni/net.d/"
......
...@@ -35,8 +35,15 @@ ...@@ -35,8 +35,15 @@
# the kubelet. The log directory specified must be an absolute directory. # the kubelet. The log directory specified must be an absolute directory.
log_dir = "/var/log/crio/pods" log_dir = "/var/log/crio/pods"
# Location for CRI-O to lay down the version file # Location for CRI-O to lay down the temporary version file.
version_file = "/var/lib/crio/version" # It is used to check if crio wipe should wipe containers, which should
# always happen on a node reboot
version_file = "/var/run/crio/version"
# Location for CRI-O to lay down the persistent version file.
# It is used to check if crio wipe should wipe images, which should
# only happen when CRI-O has been upgraded
version_file_persist = "/var/lib/crio/version"
# The crio.api table contains settings for the kubelet/gRPC interface. # The crio.api table contains settings for the kubelet/gRPC interface.
[crio.api] [crio.api]
...@@ -44,13 +51,11 @@ version_file = "/var/lib/crio/version" ...@@ -44,13 +51,11 @@ version_file = "/var/lib/crio/version"
# Path to AF_LOCAL socket on which CRI-O will listen. # Path to AF_LOCAL socket on which CRI-O will listen.
listen = "/var/run/crio/crio.sock" listen = "/var/run/crio/crio.sock"
# Host IP considered as the primary IP to use by CRI-O for things such as host network IP.
host_ip = ""
# IP address on which the stream server will listen. # IP address on which the stream server will listen.
stream_address = "127.0.0.1" stream_address = "127.0.0.1"
# The port on which the stream server will listen. # The port on which the stream server will listen. If the port is set to "0", then
# CRI-O will allocate a random free port number.
stream_port = "0" stream_port = "0"
# Enable encrypted TLS transport of the stream server. # Enable encrypted TLS transport of the stream server.
...@@ -94,6 +99,10 @@ default_runtime = "runc" ...@@ -94,6 +99,10 @@ default_runtime = "runc"
# If true, the runtime will not use pivot_root, but instead use MS_MOVE. # If true, the runtime will not use pivot_root, but instead use MS_MOVE.
no_pivot = false no_pivot = false
# decryption_keys_path is the path where the keys required for
# image decryption are stored. This option supports live configuration reload.
decryption_keys_path = "/etc/crio/keys/"
# Path to the conmon binary, used for monitoring the OCI runtime. # Path to the conmon binary, used for monitoring the OCI runtime.
# Will be searched for using $PATH if empty. # Will be searched for using $PATH if empty.
conmon = "" conmon = ""
...@@ -107,36 +116,43 @@ conmon_env = [ ...@@ -107,36 +116,43 @@ conmon_env = [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
] ]
# Additional environment variables to set for all the
# containers. These are overridden if set in the
# container image spec or in the container runtime configuration.
default_env = [
]
# If true, SELinux will be used for pod separation on the host. # If true, SELinux will be used for pod separation on the host.
selinux = false selinux = false
# Path to the seccomp.json profile which is used as the default seccomp profile # Path to the seccomp.json profile which is used as the default seccomp profile
# for the runtime. If not specified, then the internal default seccomp profile # for the runtime. If not specified, then the internal default seccomp profile
# will be used. # will be used. This option supports live configuration reload.
seccomp_profile = "" seccomp_profile = ""
# Used to change the name of the default AppArmor profile of CRI-O. The default # Used to change the name of the default AppArmor profile of CRI-O. The default
# profile name is "crio-default-" followed by the version string of CRI-O. # profile name is "crio-default". This profile only takes effect if the user
apparmor_profile = "crio-default-1.16.1" # does not specify a profile via the Kubernetes Pod's metadata annotation. If
# the profile is set to "unconfined", then this equals to disabling AppArmor.
# This option supports live configuration reload.
apparmor_profile = "crio-default"
# Cgroup management implementation used for the runtime. # Cgroup management implementation used for the runtime.
cgroup_manager = "cgroupfs" cgroup_manager = "systemd"
# List of default capabilities for containers. If it is empty or commented out, # List of default capabilities for containers. If it is empty or commented out,
# only the capabilities defined in the containers json file by the user/kube # only the capabilities defined in the containers json file by the user/kube
# will be added. # will be added.
default_capabilities = [ default_capabilities = [
"CHOWN", "CHOWN",
"DAC_OVERRIDE", "DAC_OVERRIDE",
"FSETID", "FSETID",
"FOWNER", "FOWNER",
"NET_RAW", "SETGID",
"SETGID", "SETUID",
"SETUID", "SETPCAP",
"SETPCAP", "NET_BIND_SERVICE",
"NET_BIND_SERVICE", "KILL",
"SYS_CHROOT",
"KILL",
] ]
# List of default sysctls. If it is empty or commented out, only the sysctls # List of default sysctls. If it is empty or commented out, only the sysctls
...@@ -151,8 +167,10 @@ default_sysctls = [ ...@@ -151,8 +167,10 @@ default_sysctls = [
additional_devices = [ additional_devices = [
] ]
# Path to OCI hooks directories for automatically executed hooks. # Path to OCI hooks directories for automatically executed hooks. If one of the
# directories does not exist, then CRI-O will automatically skip them.
hooks_dir = [ hooks_dir = [
"/usr/share/containers/oci/hooks.d",
] ]
# List of default mounts for each container. **Deprecated:** this option will # List of default mounts for each container. **Deprecated:** this option will
...@@ -200,9 +218,13 @@ bind_mount_prefix = "" ...@@ -200,9 +218,13 @@ bind_mount_prefix = ""
read_only = false read_only = false
# Changes the verbosity of the logs based on the level it is set to. Options # Changes the verbosity of the logs based on the level it is set to. Options
# are fatal, panic, error, warn, info, and debug. This option supports live # are fatal, panic, error, warn, info, debug and trace. This option supports
# configuration reload. # live configuration reload.
log_level = "error" log_level = "info"
# Filter the log messages by the provided regular expression.
# This option supports live configuration reload.
log_filter = ""
# The UID mappings for the user namespace of each container. A range is # The UID mappings for the user namespace of each container. A range is
# specified in the form containerUID:HostUID:Size. Multiple ranges must be # specified in the form containerUID:HostUID:Size. Multiple ranges must be
...@@ -215,12 +237,23 @@ uid_mappings = "" ...@@ -215,12 +237,23 @@ uid_mappings = ""
gid_mappings = "" gid_mappings = ""
# The minimal amount of time in seconds to wait before issuing a timeout # The minimal amount of time in seconds to wait before issuing a timeout
# regarding the proper termination of the container. # regarding the proper termination of the container. The lowest possible
ctr_stop_timeout = 0 # value is 30s, whereas lower values are not considered by CRI-O.
ctr_stop_timeout = 30
# **DEPRECATED** this option is being replaced by manage_ns_lifecycle, which is described below.
# manage_network_ns_lifecycle = false
# ManageNetworkNSLifecycle determines whether we pin and remove network namespace # manage_ns_lifecycle determines whether we pin and remove namespaces
# and manage its lifecycle. # and manage their lifecycle
manage_network_ns_lifecycle = false manage_ns_lifecycle = false
# The directory where the state of the managed namespaces gets tracked.
# Only used when manage_ns_lifecycle is true.
namespaces_dir = "/var/run"
# pinns_path is the path to find the pinns binary, which is needed to manage namespace lifecycle
pinns_path = ""
# The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes. # The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes.
# The runtime to use is picked based on the runtime_handler provided by the CRI. # The runtime to use is picked based on the runtime_handler provided by the CRI.
...@@ -281,7 +314,7 @@ global_auth_file = "" ...@@ -281,7 +314,7 @@ global_auth_file = ""
# The image used to instantiate infra containers. # The image used to instantiate infra containers.
# This option supports live configuration reload. # This option supports live configuration reload.
pause_image = "k8s.gcr.io/pause:3.1" pause_image = "k8s.gcr.io/pause:3.2"
# The path to a file containing credentials specific for pulling the pause_image from # The path to a file containing credentials specific for pulling the pause_image from
# above. The file is similar to that of /var/lib/kubelet/config.json # above. The file is similar to that of /var/lib/kubelet/config.json
...@@ -323,6 +356,10 @@ image_volumes = "mkdir" ...@@ -323,6 +356,10 @@ image_volumes = "mkdir"
# CNI plugins. # CNI plugins.
[crio.network] [crio.network]
# The default CNI network name to be selected. If not set or "", then
# CRI-O will pick-up the first one found in network_dir.
# cni_default_network = ""
# Path to the directory where CNI configuration files are located. # Path to the directory where CNI configuration files are located.
network_dir = "/etc/cni/net.d/" network_dir = "/etc/cni/net.d/"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册