Merge pull request #1078 from funstory-ai/develop

update k8s deploy yaml
This commit is contained in:
Marvin Zhang
2022-03-09 20:21:31 +08:00
committed by GitHub
2 changed files with 20 additions and 12 deletions

View File

@@ -5,20 +5,23 @@ metadata:
namespace: crawlab
spec:
ports:
- port: 8080
- port: 80
targetPort: 8080
nodePort: 30088
name: http
- name: grpc
port: 9666
targetPort: 9666
selector:
app: crawlab-master
type: NodePort
type: ClusterIP
---
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: crawlab-master
namespace: crawlab
spec:
serviceName: crawlab-master
selector:
matchLabels:
app: crawlab-master
@@ -28,11 +31,11 @@ spec:
app: crawlab-master
spec:
containers:
- image: tikazyq/crawlab:latest
- image: crawlabteam/crawlab:latest
imagePullPolicy: Always
name: crawlab
env:
- name: CRAWLAB_SERVER_MASTER
- name: CRAWLAB_NODE_MASTER
value: "Y"
- name: CRAWLAB_MONGO_HOST
value: "mongo"
@@ -50,4 +53,6 @@ spec:
value: "hostname"
ports:
- containerPort: 8080
name: crawlab
name: crawlab
- containerPort: 9666
name: grpc

View File

@@ -1,10 +1,9 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: crawlab-worker
namespace: crawlab
spec:
serviceName: crawlab-worker
replicas: 2
selector:
matchLabels:
@@ -15,11 +14,11 @@ spec:
app: crawlab-worker
spec:
containers:
- image: tikazyq/crawlab:latest
- image: crawlabteam/crawlab:latest
imagePullPolicy: Always
name: crawlab
env:
- name: CRAWLAB_SERVER_MASTER
- name: CRAWLAB_NODE_MASTER
value: "N"
- name: CRAWLAB_MONGO_HOST
value: "mongo"
@@ -33,3 +32,7 @@ spec:
value: "Y"
- name: CRAWLAB_SERVER_REGISTER_TYPE
value: "hostname"
- name: CRAWLAB_GRPC_ADDRESS
value: "crawlab"
- name: CRAWLAB_FS_FILER_URL
value: "http://crawlab/api/filer"