Files
kata-containers/tests/integration/kubernetes/runtimeclass_workloads/pod-empty-dir.yaml
Aurélien Bombo 3779281b35 tests: test emptyDir sizeLimit eviction with virtio-fs
With #12373 and #13280 in, emptyDirs are now shared from the host with
virtio-fs when supported, and properly accounted for by Kubelet.

So we can extend the sizeLimit-based pod eviction test introduced by #13127
to virtio-fs-based emptyDirs (originally only for block-based emptyDirs).

Generated-by: GitHub Copilot
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
2026-06-30 09:10:00 -05:00

31 lines
638 B
YAML

#
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
name: sharevol-kata
spec:
runtimeClassName: kata
restartPolicy: Never
securityContext:
supplementalGroups: [10]
containers:
- name: test
image: quay.io/prometheus/busybox:latest
command: ["tail", "-f", "/dev/null"]
volumeMounts:
- name: host-empty-vol
mountPath: "/host/cache"
- name: memory-empty-vol
mountPath: "/tmp/cache"
volumes:
- name: host-empty-vol
emptyDir: {}
- name: memory-empty-vol
emptyDir:
medium: Memory
sizeLimit: "50M"