diff options
Diffstat (limited to 'tools/k8s')
-rwxr-xr-x | tools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml | 39 |
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
|