mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-22 09:49:35 +00:00
End of file should not end with --- mark. This will confuse tools like yq and kubectl that might think this is another object. Signed-off-by: Beraldo Leal <bleal@redhat.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
#
|
|
# Copyright (c) 2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: vcpus-less-than-one-with-no-limits
|
|
annotations:
|
|
io.katacontainers.config.hypervisor.default_vcpus: "0"
|
|
spec:
|
|
runtimeClassName: kata
|
|
containers:
|
|
- name: vcpus-less-than-one-with-no-limits
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: ['nproc', '--all']
|
|
restartPolicy: Never
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: vcpus-less-than-one-with-limits
|
|
annotations:
|
|
io.katacontainers.config.hypervisor.default_vcpus: "0.75"
|
|
spec:
|
|
runtimeClassName: kata
|
|
containers:
|
|
- name: vcpus-less-than-one-with-limits
|
|
image: quay.io/prometheus/busybox:latest
|
|
resources:
|
|
limits:
|
|
cpu: "0.25"
|
|
command: ['nproc', '--all']
|
|
restartPolicy: Never
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: vcpus-more-than-one-with-limits
|
|
annotations:
|
|
io.katacontainers.config.hypervisor.default_vcpus: "0.75"
|
|
spec:
|
|
runtimeClassName: kata
|
|
containers:
|
|
- name: vcpus-more-than-one-with-limits
|
|
image: quay.io/prometheus/busybox:latest
|
|
resources:
|
|
limits:
|
|
cpu: "1.2"
|
|
command: ['nproc', '--all']
|
|
restartPolicy: Never
|