aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/reference-definitions
diff options
context:
space:
mode:
authorSridhar K. N. Rao <sridhar.rao@spirent.com>2021-10-27 11:39:43 +0530
committerSridhar K. N. Rao <sridhar.rao@spirent.com>2021-10-27 11:40:43 +0530
commit19fa6a4b5cd6844be4369e90a31f63700477a200 (patch)
treefcbe443ebcd712a1ddd9d7880aa52b28e422b591 /tools/k8s/reference-definitions
parent0ab7ff90c3fec546275fd35ffc13cb787c03721e (diff)
Tools: Add Pod-Definition file for Vineperf
Reference pod definition file for vineperf is added. Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: I6164216074bdb905446f35e136c50410881b15a6
Diffstat (limited to 'tools/k8s/reference-definitions')
-rwxr-xr-xtools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml b/tools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml
new file mode 100755
index 00000000..6cdb8c31
--- /dev/null
+++ b/tools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml
@@ -0,0 +1,39 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: vineperf
+ labels:
+ app: vineperf
+spec:
+ containers:
+ - name: vineperf-container
+ image: vsperf/vineperf:lakelse
+ ports:
+ - containerPort: 22
+ resources:
+ requests:
+ cpu: "2000m"
+ memory: "2000Mi"
+ limits:
+ cpu: "2000m"
+ memory: "2000Mi"
+
+---
+#
+# Service for exposing port outside of the cluster
+#
+apiVersion: v1
+kind: Service
+metadata:
+ name: vineperf
+ labels:
+ app: vineperf
+spec:
+ type: NodePort # service type (exposing a port outside of the cluster)
+ selector:
+ app: vineperf
+ ports:
+ - nodePort: 32323 # port exposed by service
+ port: 22 # port associated with the service
+ protocol: TCP # network protocol
+ targetPort: 22