forked from Substra/hlf-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
117 lines (113 loc) · 4.64 KB
/
skaffold.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Copyright 2018 Owkin, inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: skaffold/v1beta13
kind: Config
build:
artifacts:
- image: substrafoundation/hlf-k8s
context: images/hlf-k8s
sync:
manual:
- src: ./bin/*
dest: /usr/local/bin/
deploy:
helm:
releases:
- name: network-orderer
chartPath: charts/hlf-k8s
namespace: orderer
imageStrategy:
helm: {}
values:
image: substrafoundation/hlf-k8s
setValues:
nginx-ingress.enabled: true
peer.enabled: false
ca.caName: rcaOrderer
organization.id: MyOrdererMSP
organization.name: MyOrderer
orderer.enabled: true
systemOrganizations[0].name: MyOrg1
systemOrganizations[0].secret: org-1-org-config
orderer.host: network-orderer.orderer # {name}.{namespace}
orderer.ord.mspID: MyOrdererMSP
fetchSecrets[0].from: org-config
fetchSecrets[0].to: org-1-org-config
fetchSecrets[0].filename: configOrg.json
fetchSecrets[0].namespace: org-1
- name: network-org-1-peer-1
chartPath: charts/hlf-k8s
namespace: org-1
imageStrategy:
helm: {}
values:
image: substrafoundation/hlf-k8s
setValues:
nginx-ingress.enabled: true
nginx-ingress.controller.scope.enabled: true
ca.caName: rcaOrg1
peer.host: network-org-1-peer-1.org-1 # {name}.{namespace}
organization.id: MyOrg1MSP
organization.name: MyOrg1
peer.peer.mspID: MyOrg1MSP
chaincodes[0].instantiate: true
chaincodes[0].name: mycc
chaincodes[0].version: "1.0"
chaincodes[0].policy: OR("MyOrg1MSP.member"\,"MyOrg2MSP.member")
# Note: Instead of an URL, you can use an absolute path, e.g. /home/johndoe/code/substra-chaincode
# This path must be accessible to kubernetes. See README for details.
chaincodes[0].src: https://github.com/SubstraFoundation/substra-chaincode/archive/master.tar.gz
channels[0].name: mychannel
channels[0].create: true
channels[0].join: true
channels[0].extraOrgs[0].name: MyOrg2
channels[0].extraOrgs[0].secret: org-2-org-config-anchor
orderer.host: network-orderer.orderer
peer.peer.gossip.externalEndpoint: network-org-1-peer-1.org-1:7051 # {name}.{namespace}:{port}
fetchSecrets[0].from: hlf-client-tlsrootcert
fetchSecrets[0].to: ord-tls-rootcert
fetchSecrets[0].filename: cacert.pem
fetchSecrets[0].namespace: orderer
fetchSecrets[1].from: org-config-anchor
fetchSecrets[1].to: org-2-org-config-anchor
fetchSecrets[1].filename: configOrgWithAnchors.json
fetchSecrets[1].namespace: org-2
- name: network-org-2-peer-1
chartPath: charts/hlf-k8s
namespace: org-2
imageStrategy:
helm: {}
values:
image: substrafoundation/hlf-k8s
setValues:
nginx-ingress.enabled: true
nginx-ingress.controller.scope.enabled: true
ca.caName: rcaOrg2
peer.host: network-org-2-peer-1.org-2 # {name}.{namespace}
organization.id: MyOrg2MSP
organization.name: MyOrg2
peer.peer.mspID: MyOrg2MSP
chaincodes[0].name: mycc
chaincodes[0].version: "1.0"
# Note: Instead of an URL, you can use an absolute path, e.g. /home/johndoe/code/substra-chaincode
# This path folder must be accessible to kubernetes. See README for details.
chaincodes[0].src: https://github.com/SubstraFoundation/substra-chaincode/archive/master.tar.gz
channels[0].name: mychannel
channels[0].join: true
orderer.host: network-orderer.orderer
peer.peer.gossip.externalEndpoint: network-org-2-peer-1.org-2:7051 # {name}.{namespace}:{port}
fetchSecrets[0].from: hlf-client-tlsrootcert
fetchSecrets[0].to: ord-tls-rootcert
fetchSecrets[0].filename: cacert.pem
fetchSecrets[0].namespace: orderer