forked from Substra/substra-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
118 lines (113 loc) · 3.75 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
apiVersion: skaffold/v1beta13
kind: Config
build:
artifacts:
- image: substrafoundation/substra-backend
context: .
docker:
dockerfile: docker/substra-backend/Dockerfile
- image: substrafoundation/celerybeat
context: .
docker:
dockerfile: docker/celerybeat/Dockerfile
- image: substrafoundation/celeryworker
context: .
docker:
dockerfile: docker/celeryworker/Dockerfile
- image: substrafoundation/flower
context: .
docker:
dockerfile: docker/flower/Dockerfile
deploy:
helm:
releases:
- name: backend-org-1
chartPath: charts/substra-backend
namespace: org-1
imageStrategy:
helm: {}
values:
backend.image: substrafoundation/substra-backend
celerybeat.image: substrafoundation/celerybeat
celeryworker.image: substrafoundation/celeryworker
flower.image: substrafoundation/flower
overrides:
secrets:
fabricConfigmap: network-org-1-hlf-k8s-fabric
backend:
settings: dev
defaultDomain: http://substra-backend.node-1.com
ingress:
enabled: true
hosts:
- { host: substra-backend.node-1.com, paths: ["/"] }
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/client-body-buffer-size: 100m
nginx.ingress.kubernetes.io/proxy-body-size: 100m
organization:
name: MyOrg1
peer:
host: network-org-1-peer-1.org-1
port: 7051
mspID: MyOrg1MSP
orderer:
host: network-orderer.orderer
port: 7050
name: MyOrderer
persistence:
hostPath: /tmp/org-1
incomingNodes:
- { name: MyOrg1MSP, secret: selfSecret1 }
- { name: MyOrg2MSP, secret: nodeSecret1w2 }
outgoingNodes:
- { name: MyOrg1MSP, secret: selfSecret1 }
- { name: MyOrg2MSP, secret: nodeSecret2w1 }
users:
- name: "node-1"
secret: "p@$swr0d44"
- name: backend-org-2
chartPath: charts/substra-backend
namespace: org-2
imageStrategy:
helm: {}
values:
backend.image: substrafoundation/substra-backend
celerybeat.image: substrafoundation/celerybeat
celeryworker.image: substrafoundation/celeryworker
flower.image: substrafoundation/flower
overrides:
secrets:
fabricConfigmap: network-org-2-hlf-k8s-fabric
backend:
settings: dev
defaultDomain: http://substra-backend.node-2.com
ingress:
enabled: true
hosts:
- { host: substra-backend.node-2.com, paths: ["/"] }
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/client-body-buffer-size: 100m
nginx.ingress.kubernetes.io/proxy-body-size: 100m
organization:
name: MyOrg2
peer:
host: network-org-2-peer-1.org-2
port: 7051
mspID: MyOrg2MSP
orderer:
host: network-orderer.orderer
port: 7050
name: MyOrderer
persistence:
hostPath: /tmp/org-2
incomingNodes:
- { name: MyOrg1MSP, secret: nodeSecret2w1 }
- { name: MyOrg2MSP, secret: selfSecret2 }
outgoingNodes:
- { name: MyOrg1MSP, secret: nodeSecret1w2 }
- { name: MyOrg2MSP, secret: selfSecret2 }
users:
- name: "node-2"
secret: "p@$swr0d45"