From 19fa6a4b5cd6844be4369e90a31f63700477a200 Mon Sep 17 00:00:00 2001 From: "Sridhar K. N. Rao" Date: Wed, 27 Oct 2021 11:39:43 +0530 Subject: Tools: Add Pod-Definition file for Vineperf Reference pod definition file for vineperf is added. Signed-off-by: Sridhar K. N. Rao Change-Id: I6164216074bdb905446f35e136c50410881b15a6 --- .../pod-defs/vineperf/vineperf.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 tools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml 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 -- cgit 1.2.3-korg