mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-10 10:57:37 -02:30
Add crun support (#6864)
Signed-off-by: Victor Morales <v.morales@samsung.com>
This commit is contained in:
@@ -54,6 +54,13 @@ kata_runtimes:
|
||||
type: oci
|
||||
root: /run/kata-containers
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
@@ -45,12 +45,18 @@
|
||||
|
||||
- import_tasks: "crictl.yml"
|
||||
|
||||
- name: Build a list of crio runtimes
|
||||
- name: Build a list of crio runtimes with Katacontainers runtimes
|
||||
set_fact:
|
||||
crio_runtimes: "{{ crio_runtimes + kata_runtimes }}"
|
||||
when:
|
||||
- kata_containers_enabled
|
||||
|
||||
- name: Build a list of crio runtimes with crun runtime
|
||||
set_fact:
|
||||
crio_runtimes: "{{ crio_runtimes + [crun_runtime] }}"
|
||||
when:
|
||||
- crun_enabled
|
||||
|
||||
- name: Make sure needed folders exist in the system
|
||||
with_items:
|
||||
- /etc/crio
|
||||
|
||||
Reference in New Issue
Block a user