-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yaml
59 lines (55 loc) · 1.03 KB
/
kubernetes.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: energy-trading-platform
spec:
replicas: 3
selector:
matchLabels:
app: energy-trading-platform
template:
metadata:
labels:
app: energy-trading-platform
spec:
containers:
- name: energy-trading-platform
image: energy-trading-platform:latest
ports:
- containerPort: 8000
env:
- name: ETHEREUM_NODE_URL
value: http://ethereum-node:8545
---
apiVersion: v1
kind: Service
metadata:
name: energy-trading-platform
spec:
selector:
app: energy-trading-platform
ports:
- name: http
port: 8000
targetPort: 8000
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ethereum-node
spec:
replicas: 1
selector:
matchLabels:
app: ethereum-node
template:
metadata:
labels:
app: ethereum-node
spec:
containers:
- name: ethereum-node
image: ethereum/client-go:latest
ports:
- containerPort: 8545