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.

246 lines
9.2 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
  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. {% if ansible_os_family == "ClearLinux" or ansible_os_family == "RedHat" or ansible_distribution == "Ubuntu" %}
  51. runtime = "/usr/bin/runc"
  52. {% else %}
  53. runtime = "/usr/sbin/runc"
  54. {% endif %}
  55. # runtime_untrusted_workload is the OCI compatible runtime used for untrusted
  56. # container workloads. This is an optional setting, except if
  57. # default_container_trust is set to "untrusted".
  58. runtime_untrusted_workload = ""
  59. # default_workload_trust is the default level of trust crio puts in container
  60. # workloads. It can either be "trusted" or "untrusted", and the default
  61. # is "trusted".
  62. # Containers can be run through different container runtimes, depending on
  63. # the trust hints we receive from kubelet:
  64. # - If kubelet tags a container workload as untrusted, crio will try first to
  65. # run it through the untrusted container workload runtime. If it is not set,
  66. # crio will use the trusted runtime.
  67. # - If kubelet does not provide any information about the container workload trust
  68. # level, the selected runtime will depend on the default_container_trust setting.
  69. # If it is set to "untrusted", then all containers except for the host privileged
  70. # ones, will be run by the runtime_untrusted_workload runtime. Host privileged
  71. # containers are by definition trusted and will always use the trusted container
  72. # runtime. If default_container_trust is set to "trusted", crio will use the trusted
  73. # container runtime for all containers.
  74. default_workload_trust = "trusted"
  75. # no_pivot instructs the runtime to not use pivot_root, but instead use MS_MOVE
  76. no_pivot = false
  77. # conmon is the path to conmon binary, used for managing the runtime.
  78. conmon = "{{ crio_conmon }}"
  79. # conmon_env is the environment variable list for conmon process,
  80. # used for passing necessary environment variable to conmon or runtime.
  81. conmon_env = [
  82. "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  83. ]
  84. # selinux indicates whether or not SELinux will be used for pod
  85. # separation on the host. If you enable this flag, SELinux must be running
  86. # on the host.
  87. selinux = {{ (preinstall_selinux_state == 'enforcing')|lower }}
  88. # seccomp_profile is the seccomp json profile path which is used as the
  89. # default for the runtime.
  90. {% if ansible_os_family == "ClearLinux" %}
  91. seccomp_profile = "/usr/share/defaults/crio/seccomp.json"
  92. {% else %}
  93. seccomp_profile = "/etc/crio/seccomp.json"
  94. {% endif %}
  95. # apparmor_profile is the apparmor profile name which is used as the
  96. # default for the runtime.
  97. apparmor_profile = "crio-default"
  98. # cgroup_manager is the cgroup management implementation to be used
  99. # for the runtime.
  100. cgroup_manager = "cgroupfs"
  101. # default_capabilities is the list of capabilities to add and can be modified here.
  102. # If capabilities below is commented out, the default list of capabilities defined in the
  103. # spec will be added.
  104. # If capabilities is empty below, only the capabilities defined in the container json
  105. # file by the user/kube will be added.
  106. default_capabilities = [
  107. "CHOWN",
  108. "DAC_OVERRIDE",
  109. "FSETID",
  110. "FOWNER",
  111. "NET_RAW",
  112. "SETGID",
  113. "SETUID",
  114. "SETPCAP",
  115. "NET_BIND_SERVICE",
  116. "SYS_CHROOT",
  117. "KILL",
  118. ]
  119. # hooks_dir_path is the oci hooks directory for automatically executed hooks
  120. hooks_dir_path = "/usr/share/containers/oci/hooks.d"
  121. # default_mounts is the mounts list to be mounted for the container when created
  122. # deprecated, will be taken out in future versions, add default mounts to either
  123. # /usr/share/containers/mounts.conf or /etc/containers/mounts.conf
  124. default_mounts = [
  125. ]
  126. # CRI-O reads its default mounts from the following two files:
  127. # 1) /etc/containers/mounts.conf - this is the override file, where users can
  128. # either add in their own default mounts, or override the default mounts shipped
  129. # with the package.
  130. # 2) /usr/share/containers/mounts.conf - this is the default file read for mounts.
  131. # If you want CRI-O to read from a different, specific mounts file, you can change
  132. # the default_mounts_file path right below. Note, if this is done, CRI-O will only add
  133. # mounts it finds in this file.
  134. # default_mounts_file is the file path holding the default mounts to be mounted for the
  135. # container when created.
  136. # default_mounts_file = ""
  137. # pids_limit is the number of processes allowed in a container
  138. pids_limit = 1024
  139. # log_size_max is the max limit for the container log size in bytes.
  140. # Negative values indicate that no limit is imposed.
  141. log_size_max = -1
  142. # read-only indicates whether all containers will run in read-only mode
  143. read_only = false
  144. # The "crio.image" table contains settings pertaining to the
  145. # management of OCI images.
  146. # uid_mappings specifies the UID mappings to have in the user namespace.
  147. # A range is specified in the form containerUID:HostUID:Size. Multiple
  148. # ranges are separed by comma.
  149. uid_mappings = ""
  150. # gid_mappings specifies the GID mappings to have in the user namespace.
  151. # A range is specified in the form containerGID:HostGID:Size. Multiple
  152. # ranges are separed by comma.
  153. gid_mappings = ""
  154. [crio.image]
  155. # default_transport is the prefix we try prepending to an image name if the
  156. # image name as we receive it can't be parsed as a valid source reference
  157. default_transport = "docker://"
  158. # pause_image is the image which we use to instantiate infra containers.
  159. pause_image = "docker://k8s.gcr.io/pause:3.1"
  160. # pause_command is the command to run in a pause_image to have a container just
  161. # sit there. If the image contains the necessary information, this value need
  162. # not be specified.
  163. pause_command = "/pause"
  164. # signature_policy is the name of the file which decides what sort of policy we
  165. # use when deciding whether or not to trust an image that we've pulled.
  166. # Outside of testing situations, it is strongly advised that this be left
  167. # unspecified so that the default system-wide policy will be used.
  168. {% if ansible_os_family == "ClearLinux" %}
  169. signature_policy = "/usr/share/defaults/crio/policy.json"
  170. {% else %}
  171. signature_policy = ""
  172. {% endif %}
  173. # image_volumes controls how image volumes are handled.
  174. # The valid values are mkdir and ignore.
  175. image_volumes = "mkdir"
  176. # CRI-O reads its configured registries defaults from the containers/image configuration
  177. # file, /etc/containers/registries.conf. Modify registries.conf if you want to
  178. # change default registries for all tools that use containers/image. If you
  179. # want to modify just crio, you can change the registies configuration in this
  180. # file.
  181. # insecure_registries is used to skip TLS verification when pulling images.
  182. insecure_registries = [
  183. "{{ kube_service_addresses }}"
  184. ]
  185. # registries is used to specify a comma separated list of registries to be used
  186. # when pulling an unqualified image (e.g. fedora:rawhide).
  187. registries = [
  188. "docker.io"
  189. ]
  190. # The "crio.network" table contains settings pertaining to the
  191. # management of CNI plugins.
  192. [crio.network]
  193. # network_dir is where CNI network configuration
  194. # files are stored.
  195. network_dir = "/etc/cni/net.d/"
  196. # plugin_dir is where CNI plugin binaries are stored.
  197. plugin_dir = "/opt/cni/bin/"