update k8s yaml

This commit is contained in:
wusong
2022-03-07 18:48:48 +08:00
parent 59e3b1d648
commit 0422d19ff2
2 changed files with 19 additions and 11 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"
@@ -51,3 +54,5 @@ spec:
ports:
- containerPort: 8080
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:
@@ -19,7 +18,7 @@ spec:
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"