-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
crawlab-worker.yaml
38 lines (38 loc) · 957 Bytes
/
crawlab-worker.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: crawlab-worker
namespace: crawlab
spec:
replicas: 2
selector:
matchLabels:
app: crawlab-worker
template:
metadata:
labels:
app: crawlab-worker
spec:
containers:
- image: crawlabteam/crawlab:latest
imagePullPolicy: Always
name: crawlab
env:
- name: CRAWLAB_NODE_MASTER
value: "N"
- name: CRAWLAB_MONGO_HOST
value: "mongo"
- name: CRAWLAB_REDIS_ADDRESS
value: "redis"
- name: CRAWLAB_SERVER_LANG_NODE
value: "Y"
- name: CRAWLAB_SERVER_LANG_JAVA
value: "Y"
- name: CRAWLAB_SERVER_LANG_DOTNET
value: "Y"
- name: CRAWLAB_SERVER_REGISTER_TYPE
value: "hostname"
- name: CRAWLAB_GRPC_ADDRESS
value: "crawlab"
- name: CRAWLAB_FS_FILER_URL
value: "http:https://crawlab/api/filer"