aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/reference-definitions/pod-defs/sriov
diff options
context:
space:
mode:
authorSridhar Rao <sridhar.rao@spirent.com>2021-06-09 09:25:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-06-09 09:25:33 +0000
commitb3d8f3e6b150a9c1a031e4f27f3d192119e26d85 (patch)
tree61190b0551f83c1c9c91588a8c0c51ec2d80304e /tools/k8s/reference-definitions/pod-defs/sriov
parent171bf5025d8358b4dc692b3751675e42b1ebec9c (diff)
parenta5e1052beb92ac6dd45c396b753bd78986f07ab0 (diff)
Merge "WIP: Reference Definitions."
Diffstat (limited to 'tools/k8s/reference-definitions/pod-defs/sriov')
-rw-r--r--tools/k8s/reference-definitions/pod-defs/sriov/sriov-pod.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/k8s/reference-definitions/pod-defs/sriov/sriov-pod.yaml b/tools/k8s/reference-definitions/pod-defs/sriov/sriov-pod.yaml
new file mode 100644
index 00000000..2b5aff7a
--- /dev/null
+++ b/tools/k8s/reference-definitions/pod-defs/sriov/sriov-pod.yaml
@@ -0,0 +1,47 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: sriov-pod
+ annotations:
+ k8s.v1.cni.cncf.io/networks: sriov-net-a, sriov-net-b
+spec:
+ containers:
+ - name: sriov
+ image: dpdk-app-centos-numa1
+ imagePullPolicy: Never
+ securityContext:
+ privileged: true
+ capabilities:
+ add: ["CAP_SYS_ADMIN"]
+ volumeMounts:
+ - mountPath: /etc/podnetinfo
+ name: podnetinfo
+ readOnly: false
+ - mountPath: /dev/hugepages
+ name: hugepage
+ resources:
+ requests:
+ cpu: "6000m"
+ intel.com/intel_sriov_dpdk_a: '1'
+ intel.com/intel_sriov_dpdk_b: '1'
+ limits:
+ cpu: "6000m"
+ hugepages-1Gi: 2Gi
+ intel.com/intel_sriov_dpdk_a: '1'
+ intel.com/intel_sriov_dpdk_b: '1'
+ command: ["sleep", "infinity"]
+# nodeSelector:
+# vswitch: ovs
+ volumes:
+ - name: podnetinfo
+ downwardAPI:
+ items:
+ - path: "labels"
+ fieldRef:
+ fieldPath: metadata.labels
+ - path: "annotations"
+ fieldRef:
+ fieldPath: metadata.annotations
+ - name: hugepage
+ emptyDir:
+ medium: HugePages