forked from OpenBlockMesh/OBM-Fabric-GKE-HL-v0.6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svc-hl-vp0.yml
50 lines (43 loc) · 1.27 KB
/
svc-hl-vp0.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
48
49
50
# Kubernetes Manifest file to create a Hyperledger Service Definition - vp0
# Date : 28-10-2016
# Version 0.3
# Author : James Buckett ([email protected])
# Commissioned by ANZ Bank under direction of Ben Smillie ([email protected])
apiVersion: v1
kind: Service
# A Kubernetes Service is an abstraction which defines a logical set of Pods and a policy by which to access them - sometimes called a micro-service.
metadata:
# Hyperledger Validating Peer Service Definition
name: svc-hl-vp0
namespace: hyperledger-06
labels:
app: hl-vp0
tier: validating-peer
spec:
type: LoadBalancer
ports:
# 7051: Peer service listening port
- name: peer-service
port: 7051
targetPort: 7051
protocol: TCP
# 7052: CLI process use it for callbacks from chain code
- name: cli-callback
port: 7052
targetPort: 7052
protocol: TCP
# 7053: Event service on validating node
- name: event-service
port: 7053
targetPort: 7053
protocol: TCP
# 5000: REST service listening port
- name: rest-service
port: 7050
targetPort: 7050
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:
app: hl-vp0