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.

234 lines
8.9 KiB

6 years ago
6 years ago
6 years ago
  1. # The "crio" table contains all of the server options.
  2. [crio]
  3. # CRI-O reads its storage defaults from the containers/storage configuration
  4. # file, /etc/containers/storage.conf. Modify storage.conf if you want to
  5. # change default storage for all tools that use containers/storage. If you
  6. # want to modify just crio, you can change the storage configuration in this
  7. # file.
  8. # root is a path to the "root directory". CRIO stores all of its data,
  9. # including container images, in this directory.
  10. #root = "/var/lib/containers/storage"
  11. # run is a path to the "run directory". CRIO stores all of its state
  12. # in this directory.
  13. #runroot = "/var/run/containers/storage"
  14. # storage_driver select which storage driver is used to manage storage
  15. # of images and containers.
  16. storage_driver = "overlay2"
  17. # storage_option is used to pass an option to the storage driver.
  18. #storage_option = [
  19. #]
  20. # The "crio.api" table contains settings for the kubelet/gRPC interface.
  21. [crio.api]
  22. # listen is the path to the AF_LOCAL socket on which crio will listen.
  23. listen = "/var/run/crio/crio.sock"
  24. # stream_address is the IP address on which the stream server will listen
  25. stream_address = ""
  26. # stream_port is the port on which the stream server will listen
  27. stream_port = "10010"
  28. # stream_enable_tls enables encrypted tls transport of the stream server
  29. stream_enable_tls = false
  30. # stream_tls_cert is the x509 certificate file path used to serve the encrypted stream.
  31. # This file can change, and CRIO will automatically pick up the changes within 5 minutes.
  32. stream_tls_cert = ""
  33. # stream_tls_key is the key file path used to serve the encrypted stream.
  34. # This file can change, and CRIO will automatically pick up the changes within 5 minutes.
  35. stream_tls_key = ""
  36. # stream_tls_ca is the x509 CA(s) file used to verify and authenticate client
  37. # communication with the tls encrypted stream.
  38. # This file can change, and CRIO will automatically pick up the changes within 5 minutes.
  39. stream_tls_ca = ""
  40. # file_locking is whether file-based locking will be used instead of
  41. # in-memory locking
  42. file_locking = true
  43. # The "crio.runtime" table contains settings pertaining to the OCI
  44. # runtime used and options for how to set up and manage the OCI runtime.
  45. [crio.runtime]
  46. # runtime is the OCI compatible runtime used for trusted container workloads.
  47. # This is a mandatory setting as this runtime will be the default one
  48. # and will also be used for untrusted container workloads if
  49. # runtime_untrusted_workload is not set.
  50. runtime = "/usr/bin/runc"
  51. # runtime_untrusted_workload is the OCI compatible runtime used for untrusted
  52. # container workloads. This is an optional setting, except if
  53. # default_container_trust is set to "untrusted".
  54. runtime_untrusted_workload = ""
  55. # default_workload_trust is the default level of trust crio puts in container
  56. # workloads. It can either be "trusted" or "untrusted", and the default
  57. # is "trusted".
  58. # Containers can be run through different container runtimes, depending on
  59. # the trust hints we receive from kubelet:
  60. # - If kubelet tags a container workload as untrusted, crio will try first to
  61. # run it through the untrusted container workload runtime. If it is not set,
  62. # crio will use the trusted runtime.
  63. # - If kubelet does not provide any information about the container workload trust
  64. # level, the selected runtime will depend on the default_container_trust setting.
  65. # If it is set to "untrusted", then all containers except for the host privileged
  66. # ones, will be run by the runtime_untrusted_workload runtime. Host privileged
  67. # containers are by definition trusted and will always use the trusted container
  68. # runtime. If default_container_trust is set to "trusted", crio will use the trusted
  69. # container runtime for all containers.
  70. default_workload_trust = "trusted"
  71. # no_pivot instructs the runtime to not use pivot_root, but instead use MS_MOVE
  72. no_pivot = false
  73. # conmon is the path to conmon binary, used for managing the runtime.
  74. conmon = "/usr/libexec/crio/conmon"
  75. # conmon_env is the environment variable list for conmon process,
  76. # used for passing necessary environment variable to conmon or runtime.
  77. conmon_env = [
  78. "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  79. ]
  80. # selinux indicates whether or not SELinux will be used for pod
  81. # separation on the host. If you enable this flag, SELinux must be running
  82. # on the host.
  83. selinux = {{ (preinstall_selinux_state == 'enforcing')|lower }}
  84. # seccomp_profile is the seccomp json profile path which is used as the
  85. # default for the runtime.
  86. seccomp_profile = "/etc/crio/seccomp.json"
  87. # apparmor_profile is the apparmor profile name which is used as the
  88. # default for the runtime.
  89. apparmor_profile = "crio-default"
  90. # cgroup_manager is the cgroup management implementation to be used
  91. # for the runtime.
  92. cgroup_manager = "cgroupfs"
  93. # default_capabilities is the list of capabilities to add and can be modified here.
  94. # If capabilities below is commented out, the default list of capabilities defined in the
  95. # spec will be added.
  96. # If capabilities is empty below, only the capabilities defined in the container json
  97. # file by the user/kube will be added.
  98. default_capabilities = [
  99. "CHOWN",
  100. "DAC_OVERRIDE",
  101. "FSETID",
  102. "FOWNER",
  103. "NET_RAW",
  104. "SETGID",
  105. "SETUID",
  106. "SETPCAP",
  107. "NET_BIND_SERVICE",
  108. "SYS_CHROOT",
  109. "KILL",
  110. ]
  111. # hooks_dir_path is the oci hooks directory for automatically executed hooks
  112. hooks_dir_path = "/usr/share/containers/oci/hooks.d"
  113. # default_mounts is the mounts list to be mounted for the container when created
  114. # deprecated, will be taken out in future versions, add default mounts to either
  115. # /usr/share/containers/mounts.conf or /etc/containers/mounts.conf
  116. default_mounts = [
  117. ]
  118. # CRI-O reads its default mounts from the following two files:
  119. # 1) /etc/containers/mounts.conf - this is the override file, where users can
  120. # either add in their own default mounts, or override the default mounts shipped
  121. # with the package.
  122. # 2) /usr/share/containers/mounts.conf - this is the default file read for mounts.
  123. # If you want CRI-O to read from a different, specific mounts file, you can change
  124. # the default_mounts_file path right below. Note, if this is done, CRI-O will only add
  125. # mounts it finds in this file.
  126. # default_mounts_file is the file path holding the default mounts to be mounted for the
  127. # container when created.
  128. # default_mounts_file = ""
  129. # pids_limit is the number of processes allowed in a container
  130. pids_limit = 1024
  131. # log_size_max is the max limit for the container log size in bytes.
  132. # Negative values indicate that no limit is imposed.
  133. log_size_max = -1
  134. # read-only indicates whether all containers will run in read-only mode
  135. read_only = false
  136. # The "crio.image" table contains settings pertaining to the
  137. # management of OCI images.
  138. # uid_mappings specifies the UID mappings to have in the user namespace.
  139. # A range is specified in the form containerUID:HostUID:Size. Multiple
  140. # ranges are separed by comma.
  141. uid_mappings = ""
  142. # gid_mappings specifies the GID mappings to have in the user namespace.
  143. # A range is specified in the form containerGID:HostGID:Size. Multiple
  144. # ranges are separed by comma.
  145. gid_mappings = ""
  146. [crio.image]
  147. # default_transport is the prefix we try prepending to an image name if the
  148. # image name as we receive it can't be parsed as a valid source reference
  149. default_transport = "docker://"
  150. # pause_image is the image which we use to instantiate infra containers.
  151. pause_image = "docker://k8s.gcr.io/pause:3.1"
  152. # pause_command is the command to run in a pause_image to have a container just
  153. # sit there. If the image contains the necessary information, this value need
  154. # not be specified.
  155. pause_command = "/pause"
  156. # signature_policy is the name of the file which decides what sort of policy we
  157. # use when deciding whether or not to trust an image that we've pulled.
  158. # Outside of testing situations, it is strongly advised that this be left
  159. # unspecified so that the default system-wide policy will be used.
  160. signature_policy = ""
  161. # image_volumes controls how image volumes are handled.
  162. # The valid values are mkdir and ignore.
  163. image_volumes = "mkdir"
  164. # CRI-O reads its configured registries defaults from the containers/image configuration
  165. # file, /etc/containers/registries.conf. Modify registries.conf if you want to
  166. # change default registries for all tools that use containers/image. If you
  167. # want to modify just crio, you can change the registies configuration in this
  168. # file.
  169. # insecure_registries is used to skip TLS verification when pulling images.
  170. insecure_registries = [
  171. "{{ kube_service_addresses }}"
  172. ]
  173. # registries is used to specify a comma separated list of registries to be used
  174. # when pulling an unqualified image (e.g. fedora:rawhide).
  175. registries = [
  176. "docker.io"
  177. ]
  178. # The "crio.network" table contains settings pertaining to the
  179. # management of CNI plugins.
  180. [crio.network]
  181. # network_dir is where CNI network configuration
  182. # files are stored.
  183. network_dir = "/etc/cni/net.d/"
  184. # plugin_dir is where CNI plugin binaries are stored.
  185. plugin_dir = "/opt/cni/bin/"