-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
156 lines (115 loc) · 3 KB
/
Makefile
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
all: lint package
# DEV environment
### Deploy api_read_node
NODE = fvm-archive
ENV = mainnet
NAMESPACE = network
##deploy cache service for api-read
#NODE = api-read-cache-dev
#ENV = dev
#NAMESPACE = network
## lotus nodes management
# Calibration nodes
# Deploy calibrationapi
# NODE = calibrationapi-1
# ENV = mainnet
# NAMESPACE = network
# # Deploy calibrationapi-archive-node
# NODE = calibrationapi-archive-node
# ENV = mainnet
# NAMESPACE = network
####deploy cache service for api-read v0 mainnet
#NODE = api-read-v0-cache
#ENV = mainnet
#NAMESPACE = network
### Deploy api_read_master_node
# NODE = api-read-master
# ENV = mainnet
# NAMESPACE = network
### Deploy api_read_slave_0_node
# NODE = api-read-slave-0
# ENV = mainnet
# NAMESPACE = network
### Deploy api_read_slave_1_node
#NODE = api-read-slave-1
#ENV = mainnet
#NAMESPACE = network
### Deploy api_read_slave_2_node
# NODE = api-read-slave-10
# ENV = mainnet
# NAMESPACE = network
### Deploy api_read_slave_3_node
# NODE = api-read-slave-3
# ENV = mainnet
# NAMESPACE = network
# #### Deploy space00
# NODE = space00
# ENV = mainnet
# NAMESPACE = network
### Deploy space06
# NODE = space06
# ENV = mainnet
# NAMESPACE = network
### Deploy space06-cache
#NODE = space06-cache
#ENV = mainnet
#NAMESPACE = network
#### Deploy space06-1
# NODE = calibrationapi-archive-node
# ENV = mainnet
# NAMESPACE = network
#### Deploy space07
# NODE = space00
# ENV = mainnet
# NAMESPACE = network
#### Deploy space07-cache
#NODE = space07-cache
#ENV = mainnet
#NAMESPACE = network
### Deploy blockscout-0
# NODE = blockscout-0
# ENV = mainnet
# NAMESPACE = network
### Deploy coinfirm
# NODE = coinfirm
# ENV = mainnet
# NAMESPACE = network
### Deploy fvm-archive
# NODE = fvm-archive
# ENV = mainnet
# NAMESPACE = network
# OVH environment
### Deploy spacenet
# NODE = spacenet-public
# ENV = mainnet
# NAMESPACE = network
#### Deploy spacenet-slave
# NODE = spacenet-public-slave-0
# ENV = mainnet
# NAMESPACE = network
nodeInstall:
helm upgrade --history-max 3 --install -f values.yaml -f values/$(ENV)/$(NAMESPACE)/$(NODE).yaml $(NODE) -n $(NAMESPACE) .
nodeReinit:
helm -n $(NAMESPACE) delete $(NODE)
helm upgrade --history-max 3 --install -f values.yaml -f values/$(ENV)/$(NAMESPACE)/$(NODE).yaml $(NODE) -n $(NAMESPACE) .
nodeDelete:
helm -n $(NAMESPACE) delete $(NODE)
diff:
helm diff upgrade --install -f values.yaml -f values/$(ENV)/$(NAMESPACE)/$(NODE).yaml $(NODE) -n $(NAMESPACE) .
nodeDeleteFull:
helm -n $(NAMESPACE) delete $(NODE)
kubectl -n $(NAMESPACE) delete pvc vol-lotus-$(NODE)-lotus-0
nodeDeleteSpot:
helm -n $(NAMESPACE) delete $(NODE)
cascadests:
kubectl -n $(NAMESPACE) delete sts $(NODE)-lotus --cascade=false
## command to change snapshot in statefulset
## change persistence.snapshots.name before runing
stschange: cascadests nodeinstall
lint:
helm lint .
package:
helm package .
## admin configuration
create-secret:
kubectl create secret generic lotus-secret --from-file=token=token3 --from-file=privatekey=MF2XI2BNNJ3XILLQOJUXMYLUMU3