mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-10 09:27:03 +00:00
kata-manager: Add clh config to containerd config file
kata-manager currently adds default config which currently is qemu. Add config for clh as well to containerd configuration. This should allow new users to get started with clh using kata-manager. Also add config related to enabling privileged_without_host_devices. Always good to have this config enabled when users try to run privileged containers so that devices from host are not inadverdantly passed to the guest. Fixes: #8280 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
c2b2a00ad9
commit
d3250dff34
@ -34,6 +34,12 @@ readonly kata_install_dir="${kata_install_dir:-/opt/kata}"
|
||||
readonly kata_runtime_name="kata"
|
||||
readonly kata_runtime_type="io.containerd.${kata_runtime_name}.v2"
|
||||
readonly kata_shim_v2="containerd-shim-${kata_runtime_name}-v2"
|
||||
readonly kata_configuration="configuration"
|
||||
|
||||
readonly kata_clh_runtime_name="kata-clh"
|
||||
readonly kata_clh_runtime_type="io.containerd.${kata_clh_runtime_name}.v2"
|
||||
readonly kata_clh_shim_v2="containerd-shim-${kata_clh_runtime_name}-v2"
|
||||
readonly kata_clh_configuration="configuration-clh"
|
||||
|
||||
# Systemd unit name for containerd daemon
|
||||
readonly containerd_service_name="containerd.service"
|
||||
@ -477,6 +483,14 @@ configure_containerd()
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${kata_runtime_name}]
|
||||
runtime_type = "${kata_runtime_type}"
|
||||
privileged_without_host_devices = true
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${kata_runtime_name}.options]
|
||||
ConfigPath = "/opt/kata/share/defaults/kata-containers/${kata_configuration}.toml"
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${kata_clh_runtime_name}]
|
||||
runtime_type = "${kata_clh_runtime_type}"
|
||||
privileged_without_host_devices = true
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${kata_clh_runtime_name}.options]
|
||||
ConfigPath = "/opt/kata/share/defaults/kata-containers/${kata_clh_configuration}.toml"
|
||||
EOF
|
||||
|
||||
modified="true"
|
||||
|
Loading…
Reference in New Issue
Block a user