aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/reference-definitions/pod-defs/vineperf/vineperf.yaml
blob: 6cdb8c315ff69754924d06932485654a38d8f627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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