-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-pod-mshv.yaml
More file actions
47 lines (47 loc) · 1.17 KB
/
test-pod-mshv.yaml
File metadata and controls
47 lines (47 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
# Test Pod for MSHV - verifies device injection works
apiVersion: v1
kind: Pod
metadata:
name: hyperlight-test-mshv
namespace: default
labels:
app.kubernetes.io/name: hyperlight-test
hyperlight.dev/hypervisor: mshv
spec:
nodeSelector:
hyperlight.dev/hypervisor: mshv
containers:
- name: test
image: alpine:3.19
command:
- sh
- -c
- |
echo "=== Hyperlight MSHV Test Pod ==="
echo "Checking for /dev/mshv..."
if [ -e /dev/mshv ]; then
echo "✓ /dev/mshv exists"
ls -la /dev/mshv
else
echo "✗ /dev/mshv NOT FOUND"
exit 1
fi
echo ""
echo "Environment variables:"
env | grep HYPERLIGHT || echo "No HYPERLIGHT env vars found"
echo ""
echo "=== Test Complete ==="
sleep infinity
resources:
limits:
hyperlight.dev/hypervisor: "1"
securityContext:
privileged: false
runAsNonRoot: true
runAsUser: 65534
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
restartPolicy: Never