File tree 5 files changed +20
-18
lines changed
5 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 2
2
3
3
You have to read [ Common Installation Steps] ( common.md ) before reading this document.
4
4
5
+ ```
6
+ cd $PROJECT_ROOT/kubernetes
7
+ ```
8
+
5
9
(1) Create a namespace
6
10
7
11
```
@@ -26,5 +30,5 @@ kubectl create configmap hosts-config --from-file=hosts.example.yml
26
30
(4) Apply manifests
27
31
28
32
```
29
- kubectl apply -f ecoman.yml
30
- ```
33
+ kubectl apply -f .
34
+ ```
Original file line number Diff line number Diff line change 14
14
spec :
15
15
containers :
16
16
- name : crawler-container
17
- image : ghcr.io/cdsl-research/ecoman/crawler:master-9ae0608
17
+ image : ghcr.io/cdsl-research/ecoman/crawler:master-2afa787
18
18
volumeMounts :
19
19
- name : privkey-volume
20
20
mountPath : /keys
23
23
mountPath : /config
24
24
readOnly : true
25
25
env :
26
- - name : MONGO_USER
27
- value : root
26
+ - name : MONGO_USERNAME
27
+ value : mongo
28
+ # You shoud use SECRET
28
29
- name : MONGO_PASSWORD
29
30
value : password
30
31
- name : MONGO_HOST
Original file line number Diff line number Diff line change 22
22
ports :
23
23
- containerPort : 8000
24
24
env :
25
- - name : MONGO_USER
26
- value : root
25
+ - name : MONGO_USERNAME
26
+ value : mongo
27
+ # You shoud use SECRET
27
28
- name : MONGO_PASSWORD
28
29
value : password
29
30
- name : MONGO_HOST
48
49
protocol : " TCP"
49
50
port : 8000
50
51
targetPort : 8000
52
+ nodePort : 32700
51
53
selector :
52
54
ecoman : dashboard
Original file line number Diff line number Diff line change 25
25
ports :
26
26
- containerPort : 8000
27
27
env :
28
- - name : MONGO_USER
29
- value : mongo
30
- - name : MONGO_PASSWORD
31
- value : password
32
- - name : MONGO_HOST
33
- value : mongo-service
34
- - name : EXECUTOR_ADDRESS
35
- value : executor-service
36
28
- name : HOSTS_PATH
37
29
value : /config/hosts.yml
38
30
volumes :
50
42
apiVersion : v1
51
43
kind : Service
52
44
metadata :
53
- name : executor-svc
45
+ name : executor-service
54
46
spec :
55
- type : NodePort
56
47
ports :
57
48
- name : " http-port"
58
49
protocol : " TCP"
Original file line number Diff line number Diff line change 23
23
ports :
24
24
- containerPort : 27017
25
25
env :
26
+ - name : MONGO_INITDB_ROOT_USERNAME
27
+ value : mongo
28
+ # You shoud use SECRET
26
29
- name : MONGO_INITDB_ROOT_PASSWORD
27
30
value : password
31
+ - name : MONGO_INITDB_DATABASE
32
+ value : ecoman
28
33
volumeMounts :
29
34
- name : mongo-volv
30
35
mountPath : /data/db
66
71
port : 27017
67
72
targetPort : 27017
68
73
69
-
You can’t perform that action at this time.
0 commit comments