Skip to content

Commit 4e42e91

Browse files
authored
DPDK pod deployment (#183)
1 parent 075bb09 commit 4e42e91

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

test-target/dpdk-test-failure.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
name: dpdk-app
6+
namespace: {{TNF_EXAMPLE_CNF_NAMESPACE}}
7+
labels:
8+
test-network-function.com/container: target
9+
test-network-function.com/generic: target
10+
annotations:
11+
k8s.v1.cni.cncf.io/networks: mynetwork # To be created beforehand
12+
spec:
13+
containers:
14+
- name: app-container
15+
image: registry.redhat.io/openshift4/dpdk-base-rhel8:v4.9
16+
args:
17+
- /bin/sh
18+
- -c
19+
- touch /tmp/healthy; sleep infinity
20+
livenessProbe:
21+
exec:
22+
command:
23+
- cat
24+
- /tmp/healthy
25+
initialDelaySeconds: 5
26+
periodSeconds: 5
27+
securityContext:
28+
runAsUser: 0
29+
capabilities:
30+
add: ["IPC_LOCK", "SYS_RESOURCE", "NET_RAW"]
31+
volumeMounts:
32+
- mountPath: /dev/hugepages
33+
name: hugepage
34+
resources:
35+
limits:
36+
cpu: "4"
37+
hugepages-1Gi: 1Gi
38+
memory: 1Gi
39+
openshift.io/onboardDPDK: "1"
40+
requests:
41+
cpu: "4"
42+
hugepages-1Gi: 1Gi
43+
memory: 1Gi
44+
openshift.io/onboardDPDK: "1"
45+
volumes:
46+
- name: hugepage
47+
emptyDir:
48+
medium: HugePages

0 commit comments

Comments
 (0)