mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-13 20:27:41 +00:00
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>
31 lines
638 B
YAML
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"
|