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.

129 lines
3.8 KiB

  1. ---
  2. containerd_storage_dir: "/var/lib/containerd"
  3. containerd_state_dir: "/run/containerd"
  4. containerd_systemd_dir: "/etc/systemd/system/containerd.service.d"
  5. # The default value is not -999 here because containerd's oom_score_adj has been
  6. # set to the -999 even if containerd_oom_score is 0.
  7. # Ref: https://github.com/kubernetes-sigs/kubespray/pull/9275#issuecomment-1246499242
  8. containerd_oom_score: 0
  9. containerd_default_runtime: "runc"
  10. containerd_snapshotter: "overlayfs"
  11. containerd_runc_runtime:
  12. name: runc
  13. type: "io.containerd.runc.v2"
  14. engine: ""
  15. root: ""
  16. base_runtime_spec: cri-base.json
  17. options:
  18. systemdCgroup: "{{ containerd_use_systemd_cgroup | ternary('true', 'false') }}"
  19. binaryName: "{{ bin_dir }}/runc"
  20. containerd_additional_runtimes: []
  21. # Example for Kata Containers as additional runtime:
  22. # - name: kata
  23. # type: "io.containerd.kata.v2"
  24. # engine: ""
  25. # root: ""
  26. containerd_base_runtime_spec_rlimit_nofile: 65535
  27. containerd_default_base_runtime_spec_patch:
  28. process:
  29. rlimits:
  30. - type: RLIMIT_NOFILE
  31. hard: "{{ containerd_base_runtime_spec_rlimit_nofile }}"
  32. soft: "{{ containerd_base_runtime_spec_rlimit_nofile }}"
  33. # Can help reduce disk usage
  34. # https://github.com/containerd/containerd/discussions/6295
  35. containerd_discard_unpacked_layers: true
  36. containerd_base_runtime_specs:
  37. cri-base.json: "{{ containerd_default_base_runtime_spec | combine(containerd_default_base_runtime_spec_patch, recursive=1) }}"
  38. containerd_grpc_max_recv_message_size: 16777216
  39. containerd_grpc_max_send_message_size: 16777216
  40. containerd_debug_address: ""
  41. containerd_debug_level: "info"
  42. containerd_debug_format: ""
  43. containerd_debug_uid: 0
  44. containerd_debug_gid: 0
  45. containerd_metrics_address: ""
  46. containerd_metrics_grpc_histogram: false
  47. containerd_registries_mirrors:
  48. - prefix: docker.io
  49. mirrors:
  50. - host: https://registry-1.docker.io
  51. capabilities: ["pull", "resolve"]
  52. skip_verify: false
  53. containerd_max_container_log_line_size: 16384
  54. # If enabled it will allow non root users to use port numbers <1024
  55. containerd_enable_unprivileged_ports: false
  56. # If enabled it will allow non root users to use icmp sockets
  57. containerd_enable_unprivileged_icmp: false
  58. containerd_enable_selinux: false
  59. containerd_disable_apparmor: false
  60. containerd_tolerate_missing_hugetlb_controller: true
  61. containerd_disable_hugetlb_controller: true
  62. containerd_image_pull_progress_timeout: 5m
  63. containerd_cfg_dir: /etc/containerd
  64. # Extra config to be put in {{ containerd_cfg_dir }}/config.toml literally
  65. containerd_extra_args: ''
  66. # Configure registry auth (if applicable to secure/insecure registries)
  67. containerd_registry_auth: []
  68. # - registry: 10.0.0.2:5000
  69. # username: user
  70. # password: pass
  71. # Configure containerd service
  72. containerd_limit_proc_num: "infinity"
  73. containerd_limit_core: "infinity"
  74. containerd_limit_open_file_num: "infinity"
  75. containerd_limit_mem_lock: "infinity"
  76. # If enabled it will use config_path and config to be put in {{ containerd_cfg_dir }}/certs.d/
  77. containerd_use_config_path: false
  78. # OS distributions that already support containerd
  79. containerd_supported_distributions:
  80. - "CentOS"
  81. - "OracleLinux"
  82. - "RedHat"
  83. - "Ubuntu"
  84. - "Debian"
  85. - "Fedora"
  86. - "AlmaLinux"
  87. - "Rocky"
  88. - "Amazon"
  89. - "Flatcar"
  90. - "Flatcar Container Linux by Kinvolk"
  91. - "Suse"
  92. - "openSUSE Leap"
  93. - "openSUSE Tumbleweed"
  94. - "Kylin Linux Advanced Server"
  95. - "UnionTech"
  96. - "UniontechOS"
  97. - "openEuler"
  98. # Enable container device interface
  99. enable_cdi: false
  100. # For containerd tracing configuration please check out the official documentation:
  101. # https://github.com/containerd/containerd/blob/main/docs/tracing.md
  102. containerd_tracing_enabled: false
  103. containerd_tracing_endpoint: "0.0.0.0:4317"
  104. containerd_tracing_protocol: "grpc"
  105. containerd_tracing_sampling_ratio: 1.0
  106. containerd_tracing_service_name: "containerd"