-
Notifications
You must be signed in to change notification settings - Fork 0
/
dpdk-test-failure.yaml
48 lines (48 loc) · 1.16 KB
/
dpdk-test-failure.yaml
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
48
---
apiVersion: v1
kind: Pod
metadata:
name: dpdk-app
namespace: {{TNF_EXAMPLE_CNF_NAMESPACE}}
labels:
test-network-function.com/container: target
test-network-function.com/generic: target
annotations:
k8s.v1.cni.cncf.io/networks: mynetwork # To be created beforehand
spec:
containers:
- name: app-container
image: registry.redhat.io/openshift4/dpdk-base-rhel8:v4.9
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep infinity
livenessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5
securityContext:
runAsUser: 0
capabilities:
add: ["IPC_LOCK", "SYS_RESOURCE", "NET_RAW"]
volumeMounts:
- mountPath: /dev/hugepages
name: hugepage
resources:
limits:
cpu: "4"
hugepages-1Gi: 1Gi
memory: 1Gi
openshift.io/onboardDPDK: "1"
requests:
cpu: "4"
hugepages-1Gi: 1Gi
memory: 1Gi
openshift.io/onboardDPDK: "1"
volumes:
- name: hugepage
emptyDir:
medium: HugePages