-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiotex-k8s-config.yaml
69 lines (68 loc) · 1.42 KB
/
iotex-k8s-config.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
apiVersion: v1
kind: Service
metadata:
name: iotex-service
labels:
app: iotex-service
spec:
ports:
- port: 4689
name: iotex-network
- port: 14014
name: iotex-api
- port: 8080
name: iotex-stats
selector:
app: iotex
type: LoadBalancer
loadBalancerIP: [your ip]
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: iotex
spec:
selector:
matchLabels:
app: iotex
serviceName: iotex-service
replicas: 1
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: iotex
spec:
containers:
- name: iotex-core
image: iotex/iotex-core:v0.5.0-rc6
command:
- iotex-server
- -config-path=/etc/iotex/config.yaml
- -genesis-path=/etc/iotex/genesis.yaml
- -plugin=gateway
ports:
- containerPort: 4689
name: iotex-network
- containerPort: 14014
name: iotex-api
- containerPort: 8080
name: iotex-stats
volumeMounts:
- mountPath: /etc/iotex
name: config-volume
- mountPath: /var/data
name: data-volume
subPath: data
- mountPath: /var/log
name: data-volume
subPath: log
volumes:
- configMap:
name: iotex-mainnet-config
name: config-volume
- name: data-volume
hostPath:
path: /var/iotex
type: DirectoryOrCreate