-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsvc-hl-nvp-lb.yml
47 lines (39 loc) · 1.13 KB
/
svc-hl-nvp-lb.yml
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
40
41
42
43
44
45
46
47
# Kubernetes Manifest file to create a Hyperledger Non-Validating Peer Loadbalancer Service
# Date : 22-08-2016
# Version 0.1
# Author : James Buckett ([email protected])
# Commissioned by ANZ Bank under direction of Ben Smillie ([email protected])
apiVersion: v1
kind: Service
metadata:
# Hyperledger Non-Validating Peer Service Definition
name: svc-hl-nvp-lb
namespace: hyperledger
labels:
tier: non-validating-peer
spec:
type: LoadBalancer
ports:
# 30303: Peer service listening port
- name: peer-service
port: 30303
targetPort: 30303
# 30304: CLI process use it for callbacks from chain code
- name: cli-callback
port: 30304
targetPort: 30304
# 31315: Event service on validating node
- name: event-service
port: 31315
targetPort: 31315
protocol: TCP
# 5000: REST service listening port
- name: rest-service
port: 5000
targetPort: 5000
protocol: TCP
# Like the selector in the replication controller,
# but this time it identifies the set of Hyperledger
# pods to load balance traffic to.
selector:
tier: non-validating-peer