mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-21 09:25:19 +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>
28 lines
528 B
YAML
28 lines
528 B
YAML
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
kind: Pod
|
|
apiVersion: v1
|
|
metadata:
|
|
name: pv-pod
|
|
spec:
|
|
terminationGracePeriodSeconds: 0
|
|
runtimeClassName: kata
|
|
nodeName: NODE
|
|
volumes:
|
|
- name: pv-storage
|
|
persistentVolumeClaim:
|
|
claimName: pv-claim
|
|
containers:
|
|
- name: pv-container
|
|
image: quay.io/prometheus/busybox:latest
|
|
ports:
|
|
command:
|
|
- sleep
|
|
- "120"
|
|
volumeMounts:
|
|
- mountPath: "/mnt/"
|
|
name: pv-storage
|