mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 05:36:13 +00:00
This test can give false-positive on a multi-node cluster. Changed it to
use the new get_one_kata_node() and the modified exec_host() to run the
setup commands on a given node (that has kata installed) and ensure the
test pod is scheduled at that same node.
Fixes #7619
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
(cherry picked from commit 666993da8d
)
28 lines
533 B
YAML
28 lines
533 B
YAML
#
|
|
# Copyright (c) 2022 Ant Group
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: test-file-volume
|
|
spec:
|
|
terminationGracePeriodSeconds: 0
|
|
runtimeClassName: kata
|
|
restartPolicy: Never
|
|
nodeName: NODE
|
|
volumes:
|
|
- name: shared-file
|
|
hostPath:
|
|
path: HOST_FILE
|
|
type: File
|
|
containers:
|
|
- name: busybox-file-volume-container
|
|
image: busybox
|
|
volumeMounts:
|
|
- name: shared-file
|
|
mountPath: MOUNT_PATH
|
|
command: ["/bin/sh"]
|
|
args: ["-c", "tail -f /dev/null"]
|