-
Notifications
You must be signed in to change notification settings - Fork 1
/
05-orderer.yaml
85 lines (85 loc) · 2.29 KB
/
05-orderer.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
apiVersion: v1
kind: Service
metadata:
name: orderer
namespace: ledger
spec:
type: ClusterIP
selector:
app: orderer
ports:
- protocol: TCP
targetPort: 31010
port: 31010
name: grpc
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: orderer
namespace: ledger
labels:
app: orderer
spec:
replicas: 1
selector:
matchLabels:
app: orderer
template:
metadata:
labels:
app: orderer
spec:
containers:
- name: orderer
image: hyperledger/fabric-orderer:1.4.3
command: ["sh", "-c", "sleep 5 && while [ ! -f /fabric/status_configtxgen_complete ]; do echo Waiting for configtxgen; sleep 1; done; orderer"]
ports:
- containerPort: 31010
env:
- name: TZ
value: "Europe/London"
- name: ORDERER_CFG_PATH
value: /fabric/channel-artifacts
- name: ORDERER_GENERAL_LEDGERTYPE
value: file
- name: ORDERER_FILELEDGER_LOCATION
value: /fabric/ledger/orderer/channel-artifacts
- name: ORDERER_GENERAL_BATCHTIMEOUT
value: 1s
- name: ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT
value: "10"
- name: ORDERER_GENERAL_MAXWINDOWSIZE
value: "1000"
- name: ORDERER_GENERAL_ORDERERTYPE
value: solo
- name: ORDERER_GENERAL_LISTENADDRESS
value: 0.0.0.0
- name: ORDERER_GENERAL_LISTENPORT
value: "31010"
- name: ORDERER_GENERAL_LOGLEVEL
value: debug
- name: ORDERER_GENERAL_LOCALMSPID
value: OrdererMSP
- name: ORDERER_GENERAL_LOCALMSPDIR
value: /fabric/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp
- name: ORDERER_GENERAL_GENESISMETHOD
value: file
- name: ORDERER_GENERAL_GENESISFILE
value: /fabric/genesis.block
- name: ORDERER_GENERAL_GENESISPROFILE
value: initial
- name: ORDERER_GENERAL_TLS_ENABLED
value: "false"
- name: GOinfo
value: "netdns=go"
volumeMounts:
- mountPath: /fabric
name: fabricfiles
serviceAccountName: fabric
volumes:
- name: fabricfiles
nfs:
server: nfs-server.ledger.svc.cluster.local
path: "/"