Configuring resources for workloads
You can define CPU and memory allocations, as well as the container startup duration, for the IBM Confidential Computing Containers for Red Hat OpenShift Container Platform (CCCO) virtual machines (VMs) in your workload.
The resources can be configured by using annotations. If no configuration is provided, the CCCO VM is created with the following default resources:
vCPU: 3Memory: 9216 MBcreate_container_timeout: 900
Configuring resources by using annotations
You can specify CPU, memory resources and container creation duration directly in the workload pod definition by using annotations. These values are passed to the VM at runtime.
-
io.katacontainers.config.hypervisor.default_vcpus: "<number_of_cpus>" -
io.katacontainers.config.hypervisor.default_memory: "<memory_size>" -
io.katacontainers.config.runtime.create_container_timeout: "<timeout-time>"
apiVersion: v1
kind: Pod
metadata:
annotations:
io.katacontainers.config.hypervisor.default_vcpus: "3"
io.katacontainers.config.hypervisor.default_memory: "9216"
io.katacontainers.config.runtime.create_container_timeout: "900"
name: busybox-dvm
spec:
runtimeClassName: kata-remote
containers:
- name: busybox-container
image: quay.io/prometheus/busybox
command: ["sleep", "3600"]