File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments