aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml
diff options
context:
space:
mode:
authorSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-02 20:17:33 +0530
committerSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-02 20:18:55 +0530
commita5e1052beb92ac6dd45c396b753bd78986f07ab0 (patch)
tree507feb4a126a29ec7c8a001d4ed5b6ac9925b0bf /tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml
parent300d9f201aba1b8e30387138acaba79a72502d82 (diff)
WIP: Reference Definitions.
This patch adds reference definitions, and dockerfile for test-containers. Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: Ifbd90f80cb1bc91fa0bf6053fc6405891d645412
Diffstat (limited to 'tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml')
-rw-r--r--tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml b/tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml
new file mode 100644
index 00000000..7e3d2e71
--- /dev/null
+++ b/tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod2.yaml
@@ -0,0 +1,47 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: userspace-vpp-pod2
+ annotations:
+ k8s.v1.cni.cncf.io/networks: userspace-vpp-net, userspace-vpp-net
+spec:
+ containers:
+ - name: vpp-vhost
+ image: newdpdk-app-centos:latest
+ imagePullPolicy: Never
+ securityContext:
+ privileged: true
+ volumeMounts:
+ - mountPath: /etc/podnetinfo
+ name: podinfo
+ readOnly: false
+ - mountPath: /var/lib/cni/usrspcni/
+ name: shared-dir
+ - mountPath: /dev/hugepages
+ name: hugepage
+ resources:
+ requests:
+ cpu: "6000m"
+ hugepages-1Gi: 4Gi
+ limits:
+ cpu: "6000m"
+ hugepages-1Gi: 4Gi
+ command: ["sleep", "infinity"]
+ nodeSelector:
+ vswitch: ovs
+ volumes:
+ - name: podinfo
+ downwardAPI:
+ items:
+ - path: "labels"
+ fieldRef:
+ fieldPath: metadata.labels
+ - path: "annotations"
+ fieldRef:
+ fieldPath: metadata.annotations
+ - name: shared-dir
+ hostPath:
+ path: /var/lib/cni/usrspcni/data/
+ - name: hugepage
+ emptyDir:
+ medium: HugePages