2018-08-09 17:53:11 +00:00
|
|
|
---
|
2020-04-11 06:51:47 +00:00
|
|
|
|
2020-08-01 07:33:48 +00:00
|
|
|
crio_cgroup_manager: "{{ kubelet_cgroup_driver | default('systemd') }}"
|
2020-04-24 08:18:07 +00:00
|
|
|
crio_conmon: "/usr/bin/conmon"
|
2020-08-01 07:33:48 +00:00
|
|
|
crio_enable_metrics: false
|
|
|
|
crio_log_level: "info"
|
|
|
|
crio_metrics_port: "9090"
|
|
|
|
crio_pause_image: "{{ pod_infra_image_repo }}:{{ pod_infra_version }}"
|
2020-08-27 16:09:53 +00:00
|
|
|
|
2022-01-05 15:36:40 +00:00
|
|
|
# Registries defined within cri-o.
|
2020-08-27 16:09:53 +00:00
|
|
|
# By default unqualified images are not allowed for security reasons
|
|
|
|
crio_registries: []
|
2020-12-03 21:57:25 +00:00
|
|
|
# - prefix: docker.io
|
|
|
|
# insecure: false
|
|
|
|
# blocked: false
|
2022-01-05 15:36:40 +00:00
|
|
|
# location: registry-1.docker.io ## REQUIRED
|
|
|
|
# unqualified: false
|
2020-12-03 21:57:25 +00:00
|
|
|
# mirrors:
|
|
|
|
# - location: 172.20.100.52:5000
|
|
|
|
# insecure: true
|
|
|
|
# - location: mirror.gcr.io
|
|
|
|
# insecure: false
|
|
|
|
|
2022-01-05 15:36:40 +00:00
|
|
|
crio_registry_auth: []
|
|
|
|
# - registry: 10.0.0.2:5000
|
|
|
|
# username: user
|
|
|
|
# password: pass
|
|
|
|
|
2020-08-01 07:33:48 +00:00
|
|
|
crio_seccomp_profile: ""
|
|
|
|
crio_selinux: "{{ (preinstall_selinux_state == 'enforcing')|lower }}"
|
|
|
|
crio_signature_policy: "{% if ansible_os_family == 'ClearLinux' %}/usr/share/defaults/crio/policy.json{% endif %}"
|
2020-09-10 12:29:45 +00:00
|
|
|
|
|
|
|
# Override system default for storage driver
|
|
|
|
# crio_storage_driver: "overlay"
|
|
|
|
|
2020-08-01 07:33:48 +00:00
|
|
|
crio_stream_port: "10010"
|
2020-04-24 08:18:07 +00:00
|
|
|
|
|
|
|
crio_required_version: "{{ kube_version | regex_replace('^v(?P<major>\\d+).(?P<minor>\\d+).(?P<patch>\\d+)$', '\\g<major>.\\g<minor>') }}"
|
|
|
|
|
|
|
|
crio_kubernetes_version_matrix:
|
2022-03-07 13:39:07 +00:00
|
|
|
"1.23": "1.23"
|
2021-12-02 14:21:34 +00:00
|
|
|
"1.22": "1.22"
|
2021-04-28 18:30:51 +00:00
|
|
|
"1.21": "1.21"
|
2020-04-24 08:18:07 +00:00
|
|
|
|
2022-03-07 13:39:07 +00:00
|
|
|
crio_version: "{{ crio_kubernetes_version_matrix[crio_required_version] | default('1.23') }}"
|
2020-10-23 10:07:46 +00:00
|
|
|
|
|
|
|
# The crio_runtimes variable defines a list of OCI compatible runtimes.
|
|
|
|
crio_runtimes:
|
|
|
|
- name: runc
|
|
|
|
path: /usr/bin/runc
|
|
|
|
type: oci
|
|
|
|
root: /run/runc
|
|
|
|
|
|
|
|
# Kata Containers is an OCI runtime, where containers are run inside lightweight
|
|
|
|
# VMs. Kata provides additional isolation towards the host, minimizing the host attack
|
|
|
|
# surface and mitigating the consequences of containers breakout.
|
|
|
|
kata_runtimes:
|
|
|
|
# Kata Containers with the default configured VMM
|
|
|
|
- name: kata-qemu
|
2022-05-09 00:01:18 +00:00
|
|
|
path: /usr/local/bin/containerd-shim-kata-qemu-v2
|
|
|
|
type: vm
|
2020-10-23 10:07:46 +00:00
|
|
|
root: /run/kata-containers
|
2022-05-09 00:01:18 +00:00
|
|
|
privileged_without_host_devices: true
|
2020-11-28 16:38:47 +00:00
|
|
|
|
2020-12-01 19:00:50 +00:00
|
|
|
# crun is a fast and low-memory footprint OCI Container Runtime fully written in C.
|
|
|
|
crun_runtime:
|
|
|
|
name: crun
|
|
|
|
path: /usr/bin/crun
|
|
|
|
type: oci
|
|
|
|
root: /run/crun
|
|
|
|
|
2022-01-21 22:01:07 +00:00
|
|
|
# youki is an implementation of the OCI runtime-spec in Rust, similar to runc.
|
|
|
|
youki_runtime:
|
|
|
|
name: youki
|
|
|
|
path: "{{ youki_bin_dir }}/youki"
|
|
|
|
type: oci
|
|
|
|
root: /run/youki
|
|
|
|
|
2020-11-28 16:38:47 +00:00
|
|
|
# When this is true, CRI-O package repositories are added. Set this to false when using an
|
|
|
|
# environment with preconfigured CRI-O package repositories.
|
|
|
|
crio_add_repos: true
|
2020-12-21 09:54:25 +00:00
|
|
|
|
2021-07-10 03:52:45 +00:00
|
|
|
# Allow crio offline installation
|
|
|
|
crio_download_base: "download.opensuse.org/repositories/devel:kubic:libcontainers:stable"
|
|
|
|
|
|
|
|
# Allow crio offline installation
|
|
|
|
crio_download_crio: "http://{{ crio_download_base }}:/cri-o:/"
|
|
|
|
|
2020-12-21 09:54:25 +00:00
|
|
|
# skopeo need for save/load images when download_run_once=true
|
|
|
|
skopeo_packages:
|
|
|
|
- "skopeo"
|
2021-04-21 17:55:51 +00:00
|
|
|
|
|
|
|
# Configure the cri-o pids limit, increase this for heavily multi-threaded workloads
|
|
|
|
# see https://github.com/cri-o/cri-o/issues/1921
|
|
|
|
crio_pids_limit: 1024
|
2021-12-20 14:37:25 +00:00
|
|
|
|
|
|
|
# Reserve 16M uids and gids for user namespaces (256 pods * 65536 uids/gids)
|
|
|
|
# at the end of the uid/gid space
|
|
|
|
crio_remap_enable: false
|
|
|
|
crio_remap_user: containers
|
|
|
|
crio_subuid_start: 2130706432
|
|
|
|
crio_subuid_length: 16777216
|
|
|
|
crio_subgid_start: 2130706432
|
|
|
|
crio_subgid_length: 16777216
|