2019-08-22 16:16:32 +08:00
|
|
|
# The CRI-O configuration file specifies all of the available configuration
|
|
|
|
# options and command-line flags for the crio(8) OCI Kubernetes Container Runtime
|
|
|
|
# daemon, but in a TOML format that can be more easily modified and versioned.
|
|
|
|
#
|
|
|
|
# Please refer to crio.conf(5) for details of all configuration options.
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# CRI-O supports partial configuration reload during runtime, which can be
|
|
|
|
# done by sending SIGHUP to the running process. Currently supported options
|
|
|
|
# are explicitly mentioned with: 'This option supports live configuration
|
|
|
|
# reload'.
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# CRI-O reads its storage defaults from the containers-storage.conf(5) file
|
|
|
|
# located at /etc/containers/storage.conf. Modify this storage configuration if
|
|
|
|
# you want to change the system's defaults. If you want to modify storage just
|
|
|
|
# for CRI-O, you can change the storage configuration options here.
|
2018-08-10 01:53:11 +08:00
|
|
|
[crio]
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the "root directory". CRI-O stores all of its data, including
|
|
|
|
# containers images, in this directory.
|
2024-11-07 10:01:29 +08:00
|
|
|
root = "{{ crio_root }}"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the "run directory". CRI-O stores all of its state in this directory.
|
2023-08-18 01:17:22 +08:00
|
|
|
# Read from /etc/containers/storage.conf first so unnecessary here
|
|
|
|
# runroot = "/var/run/containers/storage"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Storage driver used to manage the storage of images and containers. Please
|
|
|
|
# refer to containers-storage.conf(5) to see all available storage drivers.
|
2020-09-10 20:29:45 +08:00
|
|
|
{% if crio_storage_driver is defined %}
|
2020-08-01 15:33:48 +08:00
|
|
|
storage_driver = "{{ crio_storage_driver }}"
|
2020-09-10 20:29:45 +08:00
|
|
|
{% endif %}
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# List to pass options to the storage driver. Please refer to
|
|
|
|
# containers-storage.conf(5) to see all available storage options.
|
2018-08-10 01:53:11 +08:00
|
|
|
#storage_option = [
|
|
|
|
#]
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# The default log directory where all logs will go unless directly specified by
|
|
|
|
# the kubelet. The log directory specified must be an absolute directory.
|
|
|
|
log_dir = "/var/log/crio/pods"
|
2019-08-22 16:16:32 +08:00
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# Location for CRI-O to lay down the temporary version file.
|
|
|
|
# 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"
|
2019-08-22 16:16:32 +08:00
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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"
|
2019-08-22 16:16:32 +08:00
|
|
|
|
|
|
|
# The crio.api table contains settings for the kubelet/gRPC interface.
|
2018-08-10 01:53:11 +08:00
|
|
|
[crio.api]
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to AF_LOCAL socket on which CRI-O will listen.
|
2018-08-10 01:53:11 +08:00
|
|
|
listen = "/var/run/crio/crio.sock"
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# IP address on which the stream server will listen.
|
2020-08-01 15:33:48 +08:00
|
|
|
stream_address = "127.0.0.1"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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 = "{{ crio_stream_port }}"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Enable encrypted TLS transport of the stream server.
|
2018-08-10 01:53:11 +08:00
|
|
|
stream_enable_tls = false
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the x509 certificate file used to serve the encrypted stream. This
|
|
|
|
# file can change, and CRI-O will automatically pick up the changes within 5
|
|
|
|
# minutes.
|
2018-08-10 01:53:11 +08:00
|
|
|
stream_tls_cert = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the key file used to serve the encrypted stream. This file can
|
2020-08-01 15:33:48 +08:00
|
|
|
# change and CRI-O will automatically pick up the changes within 5 minutes.
|
2018-08-10 01:53:11 +08:00
|
|
|
stream_tls_key = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the x509 CA(s) file used to verify and authenticate client
|
2020-08-01 15:33:48 +08:00
|
|
|
# communication with the encrypted stream. This file can change and CRI-O will
|
2019-08-22 16:16:32 +08:00
|
|
|
# automatically pick up the changes within 5 minutes.
|
2018-08-10 01:53:11 +08:00
|
|
|
stream_tls_ca = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Maximum grpc send message size in bytes. If not set or <=0, then CRI-O will default to 16 * 1024 * 1024.
|
|
|
|
grpc_max_send_msg_size = 16777216
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Maximum grpc receive message size. If not set or <= 0, then CRI-O will default to 16 * 1024 * 1024.
|
|
|
|
grpc_max_recv_msg_size = 16777216
|
|
|
|
|
|
|
|
# The crio.runtime table contains settings pertaining to the OCI runtime used
|
|
|
|
# and options for how to set up and manage the OCI runtime.
|
2018-08-10 01:53:11 +08:00
|
|
|
[crio.runtime]
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# A list of ulimits to be set in containers by default, specified as
|
|
|
|
# "<ulimit name>=<soft limit>:<hard limit>", for example:
|
|
|
|
# "nofile=1024:2048"
|
|
|
|
# If nothing is set here, settings will be inherited from the CRI-O daemon
|
|
|
|
#default_ulimits = [
|
|
|
|
#]
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# default_runtime is the _name_ of the OCI runtime to be used as the default.
|
|
|
|
# The name is matched against the runtimes map below.
|
2024-10-11 01:49:16 +08:00
|
|
|
default_runtime = "{{ crio_default_runtime }}"
|
2019-08-22 16:16:32 +08:00
|
|
|
|
|
|
|
# If true, the runtime will not use pivot_root, but instead use MS_MOVE.
|
2018-08-10 01:53:11 +08:00
|
|
|
no_pivot = false
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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/"
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the conmon binary, used for monitoring the OCI runtime.
|
2020-08-01 15:33:48 +08:00
|
|
|
# Will be searched for using $PATH if empty.
|
2019-06-30 05:09:20 +08:00
|
|
|
conmon = "{{ crio_conmon }}"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# Cgroup setting for conmon
|
2020-10-23 18:07:46 +08:00
|
|
|
{% if crio_cgroup_manager == "cgroupfs" %}
|
|
|
|
conmon_cgroup = "pod"
|
|
|
|
{% else %}
|
2022-12-31 00:05:30 +08:00
|
|
|
{% if kube_reserved is defined and kube_reserved|bool %}
|
2023-05-08 08:27:16 +08:00
|
|
|
conmon_cgroup = "{{ kube_reserved_cgroups_for_service_slice }}"
|
2022-12-31 00:05:30 +08:00
|
|
|
{% else %}
|
2020-08-01 15:33:48 +08:00
|
|
|
conmon_cgroup = "system.slice"
|
2020-10-23 18:07:46 +08:00
|
|
|
{% endif %}
|
2022-12-31 00:05:30 +08:00
|
|
|
{% endif %}
|
2020-08-01 15:33:48 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Environment variable list for the conmon process, used for passing necessary
|
|
|
|
# environment variables to conmon or the runtime.
|
2018-08-10 01:53:11 +08:00
|
|
|
conmon_env = [
|
|
|
|
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
|
|
|
]
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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 = [
|
|
|
|
]
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# If true, SELinux will be used for pod separation on the host.
|
2020-08-01 15:33:48 +08:00
|
|
|
selinux = {{ crio_selinux }}
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the seccomp.json profile which is used as the default seccomp profile
|
2020-08-01 15:33:48 +08:00
|
|
|
# for the runtime. If not specified, then the internal default seccomp profile
|
|
|
|
# will be used. This option supports live configuration reload.
|
|
|
|
seccomp_profile = "{{ crio_seccomp_profile }}"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Used to change the name of the default AppArmor profile of CRI-O. The default
|
2020-08-01 15:33:48 +08:00
|
|
|
# profile name is "crio-default". This profile only takes effect if the user
|
|
|
|
# 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.
|
2020-05-15 12:47:00 +08:00
|
|
|
# apparmor_profile = "crio-default"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Cgroup management implementation used for the runtime.
|
2020-08-01 15:33:48 +08:00
|
|
|
cgroup_manager = "{{ crio_cgroup_manager }}"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# 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
|
|
|
|
# will be added.
|
2018-08-10 01:53:11 +08:00
|
|
|
default_capabilities = [
|
2020-03-17 18:12:21 +08:00
|
|
|
"CHOWN",
|
|
|
|
"DAC_OVERRIDE",
|
|
|
|
"FSETID",
|
|
|
|
"FOWNER",
|
|
|
|
"NET_RAW",
|
|
|
|
"SETGID",
|
|
|
|
"SETUID",
|
|
|
|
"SETPCAP",
|
|
|
|
"NET_BIND_SERVICE",
|
|
|
|
"SYS_CHROOT",
|
|
|
|
"KILL",
|
2018-08-10 01:53:11 +08:00
|
|
|
]
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# List of default sysctls. If it is empty or commented out, only the sysctls
|
|
|
|
# defined in the container json file by the user/kube will be added.
|
|
|
|
default_sysctls = [
|
|
|
|
]
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# List of additional devices. specified as
|
|
|
|
# "<device-on-host>:<device-on-container>:<permissions>", for example: "--device=/dev/sdc:/dev/xvdc:rwm".
|
|
|
|
#If it is empty or commented out, only the devices
|
|
|
|
# defined in the container json file by the user/kube will be added.
|
|
|
|
additional_devices = [
|
2018-08-10 01:53:11 +08:00
|
|
|
]
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# Path to OCI hooks directories for automatically executed hooks. If one of the
|
|
|
|
# directories does not exist, then CRI-O will automatically skip them.
|
2019-08-22 16:16:32 +08:00
|
|
|
hooks_dir = [
|
2020-08-01 15:33:48 +08:00
|
|
|
"/usr/share/containers/oci/hooks.d",
|
2019-08-22 16:16:32 +08:00
|
|
|
]
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# List of default mounts for each container. **Deprecated:** this option will
|
|
|
|
# be removed in future versions in favor of default_mounts_file.
|
|
|
|
default_mounts = [
|
|
|
|
]
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the file specifying the defaults mounts for each container. The
|
|
|
|
# format of the config is /SRC:/DST, one mount per line. Notice that CRI-O reads
|
|
|
|
# its default mounts from the following two files:
|
|
|
|
#
|
|
|
|
# 1) /etc/containers/mounts.conf (i.e., default_mounts_file): This is the
|
|
|
|
# override file, where users can either add in their own default mounts, or
|
|
|
|
# override the default mounts shipped with the package.
|
|
|
|
#
|
|
|
|
# 2) /usr/share/containers/mounts.conf: This is the default file read for
|
|
|
|
# mounts. If you want CRI-O to read from a different, specific mounts file,
|
|
|
|
# you can change the default_mounts_file. Note, if this is done, CRI-O will
|
|
|
|
# only add mounts it finds in this file.
|
|
|
|
#
|
|
|
|
#default_mounts_file = ""
|
|
|
|
|
|
|
|
# Maximum sized allowed for the container log file. Negative numbers indicate
|
|
|
|
# that no size limit is imposed. If it is positive, it must be >= 8192 to
|
|
|
|
# match/exceed conmon's read buffer. The file is truncated and re-opened so the
|
|
|
|
# limit is never exceeded.
|
2018-08-10 01:53:11 +08:00
|
|
|
log_size_max = -1
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Whether container output should be logged to journald in addition to the kuberentes log file
|
|
|
|
log_to_journald = false
|
|
|
|
|
|
|
|
# Path to directory in which container exit files are written to by conmon.
|
|
|
|
container_exits_dir = "/var/run/crio/exits"
|
|
|
|
|
|
|
|
# Path to directory for container attach sockets.
|
|
|
|
container_attach_socket_dir = "/var/run/crio"
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# The prefix to use for the source of the bind mounts.
|
|
|
|
bind_mount_prefix = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# If set to true, all containers will run in read-only mode.
|
2018-08-10 01:53:11 +08:00
|
|
|
read_only = false
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Changes the verbosity of the logs based on the level it is set to. Options
|
2020-08-01 15:33:48 +08:00
|
|
|
# are fatal, panic, error, warn, info, debug and trace. This option supports
|
|
|
|
# live configuration reload.
|
|
|
|
log_level = "{{ crio_log_level }}"
|
|
|
|
|
|
|
|
# Filter the log messages by the provided regular expression.
|
|
|
|
# This option supports live configuration reload.
|
|
|
|
log_filter = ""
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# The UID mappings for the user namespace of each container. A range is
|
|
|
|
# specified in the form containerUID:HostUID:Size. Multiple ranges must be
|
|
|
|
# separated by comma.
|
2018-08-10 01:53:11 +08:00
|
|
|
uid_mappings = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# The GID mappings for the user namespace of each container. A range is
|
|
|
|
# specified in the form containerGID:HostGID:Size. Multiple ranges must be
|
|
|
|
# separated by comma.
|
2018-08-10 01:53:11 +08:00
|
|
|
gid_mappings = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# The minimal amount of time in seconds to wait before issuing a timeout
|
2020-08-01 15:33:48 +08:00
|
|
|
# regarding the proper termination of the container. The lowest possible
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# manage_ns_lifecycle determines whether we pin and remove namespaces
|
|
|
|
# and manage their lifecycle
|
2020-10-23 18:07:46 +08:00
|
|
|
{% if kata_containers_enabled %}
|
|
|
|
manage_ns_lifecycle = true
|
|
|
|
{% else %}
|
2020-08-01 15:33:48 +08:00
|
|
|
manage_ns_lifecycle = false
|
2020-10-23 18:07:46 +08:00
|
|
|
{% endif %}
|
2020-08-01 15:33:48 +08:00
|
|
|
|
|
|
|
# The directory where the state of the managed namespaces gets tracked.
|
|
|
|
# Only used when manage_ns_lifecycle is true.
|
|
|
|
namespaces_dir = "/var/run"
|
2019-08-22 16:16:32 +08:00
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# pinns_path is the path to find the pinns binary, which is needed to manage namespace lifecycle
|
2023-05-19 06:46:33 +08:00
|
|
|
{% if bin_dir == "/usr/local/bin" %}
|
2020-08-01 15:33:48 +08:00
|
|
|
pinns_path = ""
|
2023-05-19 06:46:33 +08:00
|
|
|
{% else %}
|
|
|
|
pinns_path = "{{ bin_dir }}/pinns"
|
|
|
|
{% endif %}
|
2020-08-01 15:33:48 +08:00
|
|
|
|
2023-11-08 23:57:32 +08:00
|
|
|
{% if crio_criu_support_enabled %}
|
|
|
|
# Enable CRIU integration, requires that the criu binary is available in $PATH.
|
|
|
|
enable_criu_support = true
|
|
|
|
{% endif %}
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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.
|
|
|
|
# If no runtime_handler is provided, the runtime will be picked based on the level
|
|
|
|
# of trust of the workload. Each entry in the table should follow the format:
|
|
|
|
#
|
|
|
|
#[crio.runtime.runtimes.runtime-handler]
|
|
|
|
# runtime_path = "/path/to/the/executable"
|
|
|
|
# runtime_type = "oci"
|
|
|
|
# runtime_root = "/path/to/the/root"
|
|
|
|
#
|
|
|
|
# Where:
|
|
|
|
# - runtime-handler: name used to identify the runtime
|
|
|
|
# - runtime_path (optional, string): absolute path to the runtime executable in
|
|
|
|
# the host filesystem. If omitted, the runtime-handler identifier should match
|
|
|
|
# the runtime executable name, and the runtime executable should be placed
|
|
|
|
# in $PATH.
|
|
|
|
# - runtime_type (optional, string): type of runtime, one of: "oci", "vm". If
|
|
|
|
# omitted, an "oci" runtime is assumed.
|
|
|
|
# - runtime_root (optional, string): root directory for storage of containers
|
|
|
|
# state.
|
2020-03-17 18:12:21 +08:00
|
|
|
|
2020-10-23 18:07:46 +08:00
|
|
|
{% for runtime in crio_runtimes %}
|
|
|
|
[crio.runtime.runtimes.{{ runtime.name }}]
|
|
|
|
runtime_path = "{{ runtime.path }}"
|
|
|
|
runtime_type = "{{ runtime.type }}"
|
|
|
|
runtime_root = "{{ runtime.root }}"
|
2021-03-08 16:17:44 +08:00
|
|
|
privileged_without_host_devices = {{ runtime.privileged_without_host_devices|default(false)|lower }}
|
2021-12-20 22:37:25 +08:00
|
|
|
allowed_annotations = {{ runtime.allowed_annotations|default([])|to_json }}
|
2020-10-23 18:07:46 +08:00
|
|
|
{% endfor %}
|
2020-08-01 15:33:48 +08:00
|
|
|
|
|
|
|
# Kata Containers with the Firecracker VMM
|
|
|
|
#[crio.runtime.runtimes.kata-fc]
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# The crio.image table contains settings pertaining to the management of OCI images.
|
|
|
|
#
|
|
|
|
# CRI-O reads its configured registries defaults from the system wide
|
|
|
|
# containers-registries.conf(5) located in /etc/containers/registries.conf. If
|
|
|
|
# you want to modify just CRI-O, you can change the registries configuration in
|
|
|
|
# this file. Otherwise, leave insecure_registries and registries commented out to
|
|
|
|
# use the system's defaults from /etc/containers/registries.conf.
|
2018-08-10 01:53:11 +08:00
|
|
|
[crio.image]
|
2023-05-29 10:03:41 +08:00
|
|
|
{% if crio_insecure_registries is defined and crio_insecure_registries|length>0 %}
|
|
|
|
insecure_registries = {{ crio_insecure_registries }}
|
|
|
|
{% endif %}
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Default transport for pulling images from a remote container storage.
|
2018-08-10 01:53:11 +08:00
|
|
|
default_transport = "docker://"
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# The path to a file containing credentials necessary for pulling images from
|
|
|
|
# secure registries. The file is similar to that of /var/lib/kubelet/config.json
|
2021-09-02 01:20:59 +08:00
|
|
|
global_auth_file = "/etc/crio/config.json"
|
2020-08-01 15:33:48 +08:00
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# The image used to instantiate infra containers.
|
2020-08-01 15:33:48 +08:00
|
|
|
# This option supports live configuration reload.
|
|
|
|
pause_image = "{{ crio_pause_image }}"
|
2018-08-10 01:53:11 +08:00
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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
|
|
|
|
# This option supports live configuration reload.
|
2019-08-22 16:16:32 +08:00
|
|
|
pause_image_auth_file = ""
|
|
|
|
|
|
|
|
# The command to run to have a container stay in the paused state.
|
2020-08-01 15:33:48 +08:00
|
|
|
# When explicitly set to "", it will fallback to the entrypoint and command
|
|
|
|
# specified in the pause image. When commented out, it will fallback to the
|
|
|
|
# default: "/pause". This option supports live configuration reload.
|
2018-08-10 01:53:11 +08:00
|
|
|
pause_command = "/pause"
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the file which decides what sort of policy we use when deciding
|
|
|
|
# whether or not to trust an image that we've pulled. It is not recommended that
|
|
|
|
# this option be used, as the default behavior of using the system-wide default
|
|
|
|
# policy (i.e., /etc/containers/policy.json) is most often preferred. Please
|
|
|
|
# refer to containers-policy.json(5) for more details.
|
2020-08-01 15:33:48 +08:00
|
|
|
signature_policy = "{{ crio_signature_policy }}"
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Controls how image volumes are handled. The valid values are mkdir, bind and
|
|
|
|
# ignore; the latter will ignore volumes entirely.
|
2018-08-10 01:53:11 +08:00
|
|
|
image_volumes = "mkdir"
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# The crio.network table containers settings pertaining to the management of
|
|
|
|
# CNI plugins.
|
2018-08-10 01:53:11 +08:00
|
|
|
[crio.network]
|
|
|
|
|
2020-08-01 15:33:48 +08:00
|
|
|
# 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 = ""
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Path to the directory where CNI configuration files are located.
|
2018-08-10 01:53:11 +08:00
|
|
|
network_dir = "/etc/cni/net.d/"
|
|
|
|
|
2019-08-22 16:16:32 +08:00
|
|
|
# Paths to directories where CNI plugin binaries are located.
|
|
|
|
plugin_dirs = [
|
2020-08-01 15:33:48 +08:00
|
|
|
"/opt/cni/bin",
|
2019-08-22 16:16:32 +08:00
|
|
|
"/usr/libexec/cni",
|
|
|
|
]
|
2020-08-01 15:33:48 +08:00
|
|
|
|
|
|
|
# A necessary configuration for Prometheus based metrics retrieval
|
|
|
|
[crio.metrics]
|
|
|
|
|
|
|
|
# Globally enable or disable metrics support.
|
|
|
|
enable_metrics = {{ crio_enable_metrics | bool | lower }}
|
|
|
|
|
|
|
|
# The port on which the metrics server will listen.
|
|
|
|
metrics_port = {{ crio_metrics_port }}
|
2023-09-21 15:30:19 +08:00
|
|
|
|
2024-01-11 18:49:35 +08:00
|
|
|
{% if nri_enabled and crio_version is version('v1.26.0', operator='>=') %}
|
2023-09-21 15:30:19 +08:00
|
|
|
[crio.nri]
|
|
|
|
|
Refactor NRI activation for containerd and CRI-O (#10470)
Refactor NRI (Node Resource Interface) activation in CRI-O and
containerd. Introduce a shared variable, nri_enabled, to streamline
the process. Currently, enabling NRI requires a separate update of
defaults for each container runtime independently, without any
verification of NRI support for the specific version of containerd
or CRI-O in use.
With this commit, the previous approach is replaced. Now, a single
variable, nri_enabled, handles this functionality. Also, this commit
separates the responsibility of verifying NRI supported versions of
containerd and CRI-O from cluster administrators, and leaves it to
Ansible.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2023-09-26 23:05:25 +08:00
|
|
|
enable_nri=true
|
|
|
|
{% endif %}
|