You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

386 lines
15 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # The CRI-O configuration file specifies all of the available configuration
  2. # options and command-line flags for the crio(8) OCI Kubernetes Container Runtime
  3. # daemon, but in a TOML format that can be more easily modified and versioned.
  4. #
  5. # Please refer to crio.conf(5) for details of all configuration options.
  6. # CRI-O supports partial configuration reload during runtime, which can be
  7. # done by sending SIGHUP to the running process. Currently supported options
  8. # are explicitly mentioned with: 'This option supports live configuration
  9. # reload'.
  10. # CRI-O reads its storage defaults from the containers-storage.conf(5) file
  11. # located at /etc/containers/storage.conf. Modify this storage configuration if
  12. # you want to change the system's defaults. If you want to modify storage just
  13. # for CRI-O, you can change the storage configuration options here.
  14. [crio]
  15. # Path to the "root directory". CRI-O stores all of its data, including
  16. # containers images, in this directory.
  17. #root = "/var/lib/containers/storage"
  18. # Path to the "run directory". CRI-O stores all of its state in this directory.
  19. #runroot = "/var/run/containers/storage"
  20. # Storage driver used to manage the storage of images and containers. Please
  21. # refer to containers-storage.conf(5) to see all available storage drivers.
  22. {% if crio_storage_driver is defined %}
  23. storage_driver = "{{ crio_storage_driver }}"
  24. {% endif %}
  25. # List to pass options to the storage driver. Please refer to
  26. # containers-storage.conf(5) to see all available storage options.
  27. #storage_option = [
  28. #]
  29. # The default log directory where all logs will go unless directly specified by
  30. # the kubelet. The log directory specified must be an absolute directory.
  31. log_dir = "/var/log/crio/pods"
  32. # Location for CRI-O to lay down the temporary version file.
  33. # It is used to check if crio wipe should wipe containers, which should
  34. # always happen on a node reboot
  35. version_file = "/var/run/crio/version"
  36. # Location for CRI-O to lay down the persistent version file.
  37. # It is used to check if crio wipe should wipe images, which should
  38. # only happen when CRI-O has been upgraded
  39. version_file_persist = "/var/lib/crio/version"
  40. # The crio.api table contains settings for the kubelet/gRPC interface.
  41. [crio.api]
  42. # Path to AF_LOCAL socket on which CRI-O will listen.
  43. listen = "/var/run/crio/crio.sock"
  44. # IP address on which the stream server will listen.
  45. stream_address = "127.0.0.1"
  46. # The port on which the stream server will listen. If the port is set to "0", then
  47. # CRI-O will allocate a random free port number.
  48. stream_port = "{{ crio_stream_port }}"
  49. # Enable encrypted TLS transport of the stream server.
  50. stream_enable_tls = false
  51. # Path to the x509 certificate file used to serve the encrypted stream. This
  52. # file can change, and CRI-O will automatically pick up the changes within 5
  53. # minutes.
  54. stream_tls_cert = ""
  55. # Path to the key file used to serve the encrypted stream. This file can
  56. # change and CRI-O will automatically pick up the changes within 5 minutes.
  57. stream_tls_key = ""
  58. # Path to the x509 CA(s) file used to verify and authenticate client
  59. # communication with the encrypted stream. This file can change and CRI-O will
  60. # automatically pick up the changes within 5 minutes.
  61. stream_tls_ca = ""
  62. # Maximum grpc send message size in bytes. If not set or <=0, then CRI-O will default to 16 * 1024 * 1024.
  63. grpc_max_send_msg_size = 16777216
  64. # Maximum grpc receive message size. If not set or <= 0, then CRI-O will default to 16 * 1024 * 1024.
  65. grpc_max_recv_msg_size = 16777216
  66. # The crio.runtime table contains settings pertaining to the OCI runtime used
  67. # and options for how to set up and manage the OCI runtime.
  68. [crio.runtime]
  69. # A list of ulimits to be set in containers by default, specified as
  70. # "<ulimit name>=<soft limit>:<hard limit>", for example:
  71. # "nofile=1024:2048"
  72. # If nothing is set here, settings will be inherited from the CRI-O daemon
  73. #default_ulimits = [
  74. #]
  75. # default_runtime is the _name_ of the OCI runtime to be used as the default.
  76. # The name is matched against the runtimes map below.
  77. default_runtime = "runc"
  78. # If true, the runtime will not use pivot_root, but instead use MS_MOVE.
  79. no_pivot = false
  80. # decryption_keys_path is the path where the keys required for
  81. # image decryption are stored. This option supports live configuration reload.
  82. decryption_keys_path = "/etc/crio/keys/"
  83. # Path to the conmon binary, used for monitoring the OCI runtime.
  84. # Will be searched for using $PATH if empty.
  85. conmon = "{{ crio_conmon }}"
  86. # Cgroup setting for conmon
  87. conmon_cgroup = "system.slice"
  88. # Environment variable list for the conmon process, used for passing necessary
  89. # environment variables to conmon or the runtime.
  90. conmon_env = [
  91. "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  92. ]
  93. # Additional environment variables to set for all the
  94. # containers. These are overridden if set in the
  95. # container image spec or in the container runtime configuration.
  96. default_env = [
  97. ]
  98. # If true, SELinux will be used for pod separation on the host.
  99. selinux = {{ crio_selinux }}
  100. # Path to the seccomp.json profile which is used as the default seccomp profile
  101. # for the runtime. If not specified, then the internal default seccomp profile
  102. # will be used. This option supports live configuration reload.
  103. seccomp_profile = "{{ crio_seccomp_profile }}"
  104. # Used to change the name of the default AppArmor profile of CRI-O. The default
  105. # profile name is "crio-default". This profile only takes effect if the user
  106. # does not specify a profile via the Kubernetes Pod's metadata annotation. If
  107. # the profile is set to "unconfined", then this equals to disabling AppArmor.
  108. # This option supports live configuration reload.
  109. # apparmor_profile = "crio-default"
  110. # Cgroup management implementation used for the runtime.
  111. cgroup_manager = "{{ crio_cgroup_manager }}"
  112. # List of default capabilities for containers. If it is empty or commented out,
  113. # only the capabilities defined in the containers json file by the user/kube
  114. # will be added.
  115. default_capabilities = [
  116. "CHOWN",
  117. "DAC_OVERRIDE",
  118. "FSETID",
  119. "FOWNER",
  120. "NET_RAW",
  121. "SETGID",
  122. "SETUID",
  123. "SETPCAP",
  124. "NET_BIND_SERVICE",
  125. "SYS_CHROOT",
  126. "KILL",
  127. ]
  128. # List of default sysctls. If it is empty or commented out, only the sysctls
  129. # defined in the container json file by the user/kube will be added.
  130. default_sysctls = [
  131. ]
  132. # List of additional devices. specified as
  133. # "<device-on-host>:<device-on-container>:<permissions>", for example: "--device=/dev/sdc:/dev/xvdc:rwm".
  134. #If it is empty or commented out, only the devices
  135. # defined in the container json file by the user/kube will be added.
  136. additional_devices = [
  137. ]
  138. # Path to OCI hooks directories for automatically executed hooks. If one of the
  139. # directories does not exist, then CRI-O will automatically skip them.
  140. hooks_dir = [
  141. "/usr/share/containers/oci/hooks.d",
  142. ]
  143. # List of default mounts for each container. **Deprecated:** this option will
  144. # be removed in future versions in favor of default_mounts_file.
  145. default_mounts = [
  146. ]
  147. # Path to the file specifying the defaults mounts for each container. The
  148. # format of the config is /SRC:/DST, one mount per line. Notice that CRI-O reads
  149. # its default mounts from the following two files:
  150. #
  151. # 1) /etc/containers/mounts.conf (i.e., default_mounts_file): This is the
  152. # override file, where users can either add in their own default mounts, or
  153. # override the default mounts shipped with the package.
  154. #
  155. # 2) /usr/share/containers/mounts.conf: This is the default file read for
  156. # mounts. If you want CRI-O to read from a different, specific mounts file,
  157. # you can change the default_mounts_file. Note, if this is done, CRI-O will
  158. # only add mounts it finds in this file.
  159. #
  160. #default_mounts_file = ""
  161. # Maximum number of processes allowed in a container.
  162. pids_limit = 1024
  163. # Maximum sized allowed for the container log file. Negative numbers indicate
  164. # that no size limit is imposed. If it is positive, it must be >= 8192 to
  165. # match/exceed conmon's read buffer. The file is truncated and re-opened so the
  166. # limit is never exceeded.
  167. log_size_max = -1
  168. # Whether container output should be logged to journald in addition to the kuberentes log file
  169. log_to_journald = false
  170. # Path to directory in which container exit files are written to by conmon.
  171. container_exits_dir = "/var/run/crio/exits"
  172. # Path to directory for container attach sockets.
  173. container_attach_socket_dir = "/var/run/crio"
  174. # The prefix to use for the source of the bind mounts.
  175. bind_mount_prefix = ""
  176. # If set to true, all containers will run in read-only mode.
  177. read_only = false
  178. # Changes the verbosity of the logs based on the level it is set to. Options
  179. # are fatal, panic, error, warn, info, debug and trace. This option supports
  180. # live configuration reload.
  181. log_level = "{{ crio_log_level }}"
  182. # Filter the log messages by the provided regular expression.
  183. # This option supports live configuration reload.
  184. log_filter = ""
  185. # The UID mappings for the user namespace of each container. A range is
  186. # specified in the form containerUID:HostUID:Size. Multiple ranges must be
  187. # separated by comma.
  188. uid_mappings = ""
  189. # The GID mappings for the user namespace of each container. A range is
  190. # specified in the form containerGID:HostGID:Size. Multiple ranges must be
  191. # separated by comma.
  192. gid_mappings = ""
  193. # The minimal amount of time in seconds to wait before issuing a timeout
  194. # regarding the proper termination of the container. The lowest possible
  195. # value is 30s, whereas lower values are not considered by CRI-O.
  196. ctr_stop_timeout = 30
  197. # **DEPRECATED** this option is being replaced by manage_ns_lifecycle, which is described below.
  198. # manage_network_ns_lifecycle = false
  199. # manage_ns_lifecycle determines whether we pin and remove namespaces
  200. # and manage their lifecycle
  201. manage_ns_lifecycle = false
  202. # The directory where the state of the managed namespaces gets tracked.
  203. # Only used when manage_ns_lifecycle is true.
  204. namespaces_dir = "/var/run"
  205. # pinns_path is the path to find the pinns binary, which is needed to manage namespace lifecycle
  206. pinns_path = ""
  207. # The "crio.runtime.runtimes" table defines a list of OCI compatible runtimes.
  208. # The runtime to use is picked based on the runtime_handler provided by the CRI.
  209. # If no runtime_handler is provided, the runtime will be picked based on the level
  210. # of trust of the workload. Each entry in the table should follow the format:
  211. #
  212. #[crio.runtime.runtimes.runtime-handler]
  213. # runtime_path = "/path/to/the/executable"
  214. # runtime_type = "oci"
  215. # runtime_root = "/path/to/the/root"
  216. #
  217. # Where:
  218. # - runtime-handler: name used to identify the runtime
  219. # - runtime_path (optional, string): absolute path to the runtime executable in
  220. # the host filesystem. If omitted, the runtime-handler identifier should match
  221. # the runtime executable name, and the runtime executable should be placed
  222. # in $PATH.
  223. # - runtime_type (optional, string): type of runtime, one of: "oci", "vm". If
  224. # omitted, an "oci" runtime is assumed.
  225. # - runtime_root (optional, string): root directory for storage of containers
  226. # state.
  227. [crio.runtime.runtimes.runc]
  228. runtime_path = "{{ crio_runc_path }}"
  229. runtime_type = "oci"
  230. runtime_root = "/run/runc"
  231. # Kata Containers is an OCI runtime, where containers are run inside lightweight
  232. # VMs. Kata provides additional isolation towards the host, minimizing the host attack
  233. # surface and mitigating the consequences of containers breakout.
  234. # Kata Containers with the default configured VMM
  235. #[crio.runtime.runtimes.kata-runtime]
  236. # Kata Containers with the QEMU VMM
  237. #[crio.runtime.runtimes.kata-qemu]
  238. # Kata Containers with the Firecracker VMM
  239. #[crio.runtime.runtimes.kata-fc]
  240. # The crio.image table contains settings pertaining to the management of OCI images.
  241. #
  242. # CRI-O reads its configured registries defaults from the system wide
  243. # containers-registries.conf(5) located in /etc/containers/registries.conf. If
  244. # you want to modify just CRI-O, you can change the registries configuration in
  245. # this file. Otherwise, leave insecure_registries and registries commented out to
  246. # use the system's defaults from /etc/containers/registries.conf.
  247. [crio.image]
  248. # Default transport for pulling images from a remote container storage.
  249. default_transport = "docker://"
  250. # The path to a file containing credentials necessary for pulling images from
  251. # secure registries. The file is similar to that of /var/lib/kubelet/config.json
  252. global_auth_file = ""
  253. # The image used to instantiate infra containers.
  254. # This option supports live configuration reload.
  255. pause_image = "{{ crio_pause_image }}"
  256. # The path to a file containing credentials specific for pulling the pause_image from
  257. # above. The file is similar to that of /var/lib/kubelet/config.json
  258. # This option supports live configuration reload.
  259. pause_image_auth_file = ""
  260. # The command to run to have a container stay in the paused state.
  261. # When explicitly set to "", it will fallback to the entrypoint and command
  262. # specified in the pause image. When commented out, it will fallback to the
  263. # default: "/pause". This option supports live configuration reload.
  264. pause_command = "/pause"
  265. # Path to the file which decides what sort of policy we use when deciding
  266. # whether or not to trust an image that we've pulled. It is not recommended that
  267. # this option be used, as the default behavior of using the system-wide default
  268. # policy (i.e., /etc/containers/policy.json) is most often preferred. Please
  269. # refer to containers-policy.json(5) for more details.
  270. signature_policy = "{{ crio_signature_policy }}"
  271. # List of registries to skip TLS verification for pulling images. Please
  272. # consider configuring the registries via /etc/containers/registries.conf before
  273. # changing them here.
  274. #insecure_registries = "[]"
  275. # Controls how image volumes are handled. The valid values are mkdir, bind and
  276. # ignore; the latter will ignore volumes entirely.
  277. image_volumes = "mkdir"
  278. # List of registries to be used when pulling an unqualified image (e.g.,
  279. # "alpine:latest"). By default, registries is set to "docker.io" for
  280. # compatibility reasons. Depending on your workload and usecase you may add more
  281. # registries (e.g., "quay.io", "registry.fedoraproject.org",
  282. # "registry.opensuse.org", etc.).
  283. registries = [
  284. {% for registry in crio_registries %}
  285. "{{ registry }}",
  286. {% endfor %}
  287. ]
  288. # The crio.network table containers settings pertaining to the management of
  289. # CNI plugins.
  290. [crio.network]
  291. # The default CNI network name to be selected. If not set or "", then
  292. # CRI-O will pick-up the first one found in network_dir.
  293. # cni_default_network = ""
  294. # Path to the directory where CNI configuration files are located.
  295. network_dir = "/etc/cni/net.d/"
  296. # Paths to directories where CNI plugin binaries are located.
  297. plugin_dirs = [
  298. "/opt/cni/bin",
  299. "/usr/libexec/cni",
  300. ]
  301. # A necessary configuration for Prometheus based metrics retrieval
  302. [crio.metrics]
  303. # Globally enable or disable metrics support.
  304. enable_metrics = {{ crio_enable_metrics | bool | lower }}
  305. # The port on which the metrics server will listen.
  306. metrics_port = {{ crio_metrics_port }}