mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-20 02:10:46 +00:00
kata-deploy: Add cloud-hypervisor
Now that we have a separate Cloud Hypervisor configuration file for the rust runtime, add it to the kata-deploy. See: https://github.com/kata-containers/kata-containers/pull/8250 Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com> Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
d4e00238ab
commit
158ca17ae7
@ -30,7 +30,7 @@ spec:
|
|||||||
- name: DEBUG
|
- name: DEBUG
|
||||||
value: "false"
|
value: "false"
|
||||||
- name: SHIMS
|
- name: SHIMS
|
||||||
value: "clh dragonball fc qemu-nvidia-gpu qemu-sev qemu-snp qemu-tdx qemu remote stratovirt"
|
value: "clh cloud-hypervisor dragonball fc qemu-nvidia-gpu qemu-sev qemu-snp qemu-tdx qemu stratovirt"
|
||||||
- name: DEFAULT_SHIM
|
- name: DEFAULT_SHIM
|
||||||
value: "qemu"
|
value: "qemu"
|
||||||
- name: CREATE_RUNTIMECLASSES
|
- name: CREATE_RUNTIMECLASSES
|
||||||
|
@ -32,7 +32,7 @@ spec:
|
|||||||
- name: DEBUG
|
- name: DEBUG
|
||||||
value: "false"
|
value: "false"
|
||||||
- name: SHIMS
|
- name: SHIMS
|
||||||
value: "clh dragonball fc qemu qemu-nvidia-gpu qemu-sev qemu-snp qemu-tdx"
|
value: "clh cloud-hypervisor dragonball fc qemu qemu-nvidia-gpu qemu-sev qemu-snp qemu-tdx"
|
||||||
- name: DEFAULT_SHIM
|
- name: DEFAULT_SHIM
|
||||||
value: "qemu"
|
value: "qemu"
|
||||||
- name: CREATE_RUNTIMECLASSES
|
- name: CREATE_RUNTIMECLASSES
|
||||||
|
@ -32,7 +32,7 @@ spec:
|
|||||||
- name: DEBUG
|
- name: DEBUG
|
||||||
value: "false"
|
value: "false"
|
||||||
- name: SHIMS
|
- name: SHIMS
|
||||||
value: "clh dragonball fc qemu qemu-nvidia-gpu qemu-sev qemu-snp qemu-tdx remote stratovirt"
|
value: "clh cloud-hypervisor dragonball fc qemu qemu-nvidia-gpu qemu-sev qemu-snp qemu-tdx stratovirt"
|
||||||
- name: DEFAULT_SHIM
|
- name: DEFAULT_SHIM
|
||||||
value: "qemu"
|
value: "qemu"
|
||||||
- name: CREATE_RUNTIMECLASSES
|
- name: CREATE_RUNTIMECLASSES
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
kind: RuntimeClass
|
||||||
|
apiVersion: node.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: kata-cloud-hypervisor
|
||||||
|
handler: kata-cloud-hypervisor
|
||||||
|
overhead:
|
||||||
|
podFixed:
|
||||||
|
memory: "130Mi"
|
||||||
|
cpu: "250m"
|
||||||
|
scheduling:
|
||||||
|
nodeSelector:
|
||||||
|
katacontainers.io/kata-runtime: "true"
|
@ -14,6 +14,19 @@ scheduling:
|
|||||||
---
|
---
|
||||||
kind: RuntimeClass
|
kind: RuntimeClass
|
||||||
apiVersion: node.k8s.io/v1
|
apiVersion: node.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: kata-cloud-hypervisor
|
||||||
|
handler: kata-cloud-hypervisor
|
||||||
|
overhead:
|
||||||
|
podFixed:
|
||||||
|
memory: "130Mi"
|
||||||
|
cpu: "250m"
|
||||||
|
scheduling:
|
||||||
|
nodeSelector:
|
||||||
|
katacontainers.io/kata-runtime: "true"
|
||||||
|
---
|
||||||
|
kind: RuntimeClass
|
||||||
|
apiVersion: node.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: kata-dragonball
|
name: kata-dragonball
|
||||||
handler: kata-dragonball
|
handler: kata-dragonball
|
||||||
|
@ -134,7 +134,7 @@ function get_kata_containers_config_path() {
|
|||||||
# Map the runtime shim name to the appropriate configuration
|
# Map the runtime shim name to the appropriate configuration
|
||||||
# file directory.
|
# file directory.
|
||||||
case "$shim" in
|
case "$shim" in
|
||||||
dragonball) config_path="$rust_config_path" ;;
|
cloud-hypervisor | dragonball) config_path="$rust_config_path" ;;
|
||||||
*) config_path="$golang_config_path" ;;
|
*) config_path="$golang_config_path" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ function configure_different_shims_base() {
|
|||||||
# Map the runtime shim name to the appropriate
|
# Map the runtime shim name to the appropriate
|
||||||
# containerd-shim-kata-v2 binary
|
# containerd-shim-kata-v2 binary
|
||||||
case "$shim" in
|
case "$shim" in
|
||||||
dragonball)
|
cloud-hypervisor | dragonball)
|
||||||
ln -sf /opt/kata/runtime-rs/bin/containerd-shim-kata-v2 "${shim_file}" ;;
|
ln -sf /opt/kata/runtime-rs/bin/containerd-shim-kata-v2 "${shim_file}" ;;
|
||||||
*)
|
*)
|
||||||
ln -sf /opt/kata/bin/containerd-shim-kata-v2 "${shim_file}" ;;
|
ln -sf /opt/kata/bin/containerd-shim-kata-v2 "${shim_file}" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user