mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 22:17:19 +00:00
Let's increase the amount of bytes allocated per VM worker, so we can hit the OOM sooner. Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
25 lines
511 B
YAML
25 lines
511 B
YAML
#
|
|
# Copyright (c) 2020 Ant Group
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: pod-oom
|
|
spec:
|
|
runtimeClassName: kata
|
|
restartPolicy: Never
|
|
containers:
|
|
- image: quay.io/kata-containers/sysbench-kata:latest
|
|
imagePullPolicy: IfNotPresent
|
|
name: oom-test
|
|
command: ["/bin/sh"]
|
|
args: ["-c", "sleep 2; stress --vm 2 --vm-bytes 500M --timeout 30s"]
|
|
resources:
|
|
limits:
|
|
memory: 500Mi
|
|
requests:
|
|
memory: 500Mi
|