forked from Substra/substra-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skaffold.yaml
120 lines (115 loc) · 3.94 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
118
119
120
apiVersion: skaffold/v1beta13
kind: Config
build:
artifacts:
- image: eu.gcr.io/substra-208412/substra-backend
context: .
docker:
dockerfile: docker/substra-backend/Dockerfile
- image: eu.gcr.io/substra-208412/celerybeat
context: .
docker:
dockerfile: docker/celerybeat/Dockerfile
- image: eu.gcr.io/substra-208412/celeryworker
context: .
docker:
dockerfile: docker/celeryworker/Dockerfile
- image: eu.gcr.io/substra-208412/flower
context: .
docker:
dockerfile: docker/flower/Dockerfile
deploy:
helm:
releases:
- name: substra-backend-peer-1
chartPath: charts/substra-backend
namespace: peer-1
imageStrategy:
helm: {}
values:
backend.image: eu.gcr.io/substra-208412/substra-backend
celerybeat.image: eu.gcr.io/substra-208412/celerybeat
celeryworker.image: eu.gcr.io/substra-208412/celeryworker
flower.image: eu.gcr.io/substra-208412/flower
overrides:
secrets:
fabricConfigmap: network-peer-1-hlf-k8s-fabric
backend:
settings: dev
defaultDomain: http://substra-backend.node-1
ingress:
enabled: true
hosts:
- { host: substra-backend.node-1, paths: ["/"] }
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/client-body-buffer-size: 100m
nginx.ingress.kubernetes.io/proxy-body-size: 100m
auth:
user: node-1
password: node-1pwd
header: "Basic bm9kZS0xOm5vZGUtMXB3ZA=="
organization:
name: MyPeer1
peer:
host: network-peer-1.peer-1
port: 7051
mspID: MyPeer1MSP
orderer:
host: network-orderer.orderer
port: 7050
name: MyOrderer
persistence:
hostPath: /tmp/peer-1
incomingNodes:
- { name: MyPeer1MSP, secret: selfSecret1 }
- { name: MyPeer2MSP, secret: nodeSecret2 }
outgoingNodes:
- { name: MyPeer1MSP, secret: selfSecret1 }
- { name: MyPeer2MSP, secret: nodeSecret1 }
- name: substra-backend-peer-2
chartPath: charts/substra-backend
namespace: peer-2
imageStrategy:
helm: {}
values:
backend.image: eu.gcr.io/substra-208412/substra-backend
celerybeat.image: eu.gcr.io/substra-208412/celerybeat
celeryworker.image: eu.gcr.io/substra-208412/celeryworker
flower.image: eu.gcr.io/substra-208412/flower
overrides:
secrets:
fabricConfigmap: network-peer-2-hlf-k8s-fabric
backend:
settings: dev
defaultDomain: http://substra-backend.node-2
ingress:
enabled: true
hosts:
- { host: substra-backend.node-2, paths: ["/"] }
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/client-body-buffer-size: 100m
nginx.ingress.kubernetes.io/proxy-body-size: 100m
auth:
user: node-2
password: node-2pwd
header: "Basic bm9kZS0yOm5vZGUtMnB3ZA=="
organization:
name: MyPeer1
peer:
host: network-peer-2.peer-2
port: 7051
mspID: MyPeer2MSP
orderer:
host: network-orderer.orderer
port: 7050
name: MyOrderer
persistence:
hostPath: /tmp/peer-2
incomingNodes:
- { name: MyPeer1MSP, secret: nodeSecret1 }
- { name: MyPeer2MSP, secret: selfSecret2 }
outgoingNodes:
- { name: MyPeer1MSP, secret: nodeSecret2 }
- { name: MyPeer2MSP, secret: selfSecret2 }