mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
updated k8s devops
This commit is contained in:
@@ -13,13 +13,12 @@ spec:
|
|||||||
type: NodePort
|
type: NodePort
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: crawlab-master
|
name: crawlab-master
|
||||||
namespace: crawlab-release
|
namespace: crawlab-release
|
||||||
spec:
|
spec:
|
||||||
strategy:
|
serviceName: crawlab-master
|
||||||
type: Recreate
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: crawlab-master
|
app: crawlab-master
|
||||||
@@ -42,9 +41,13 @@ spec:
|
|||||||
- name: CRAWLAB_SETTING_ALLOWREGISTER
|
- name: CRAWLAB_SETTING_ALLOWREGISTER
|
||||||
value: "Y"
|
value: "Y"
|
||||||
- name: CRAWLAB_SERVER_LANG_NODE
|
- name: CRAWLAB_SERVER_LANG_NODE
|
||||||
value: "Y"
|
value: "N"
|
||||||
- name: CRAWLAB_SERVER_LANG_JAVA
|
- name: CRAWLAB_SERVER_LANG_JAVA
|
||||||
value: "Y"
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_LANG_DOTNET
|
||||||
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_REGISTER_TYPE
|
||||||
|
value: "hostname"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: crawlab
|
name: crawlab
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: crawlab-worker
|
name: crawlab-worker
|
||||||
namespace: crawlab-release
|
namespace: crawlab-release
|
||||||
spec:
|
spec:
|
||||||
|
serviceName: crawlab-worker
|
||||||
replicas: 2
|
replicas: 2
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: crawlab-worker
|
app: crawlab-worker
|
||||||
@@ -27,6 +26,10 @@ spec:
|
|||||||
- name: CRAWLAB_REDIS_ADDRESS
|
- name: CRAWLAB_REDIS_ADDRESS
|
||||||
value: "redis"
|
value: "redis"
|
||||||
- name: CRAWLAB_SERVER_LANG_NODE
|
- name: CRAWLAB_SERVER_LANG_NODE
|
||||||
value: "Y"
|
value: "N"
|
||||||
- name: CRAWLAB_SERVER_LANG_JAVA
|
- name: CRAWLAB_SERVER_LANG_JAVA
|
||||||
value: "Y"
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_LANG_DOTNET
|
||||||
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_REGISTER_TYPE
|
||||||
|
value: "hostname"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: crawlab
|
name: crawlab
|
||||||
namespace: crawlab
|
namespace: crawlab-master
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 8080
|
||||||
@@ -13,13 +13,12 @@ spec:
|
|||||||
type: NodePort
|
type: NodePort
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: crawlab-master
|
name: crawlab-master
|
||||||
namespace: crawlab
|
namespace: crawlab-master
|
||||||
spec:
|
spec:
|
||||||
strategy:
|
serviceName: crawlab-master
|
||||||
type: Recreate
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: crawlab-master
|
app: crawlab-master
|
||||||
@@ -39,10 +38,16 @@ spec:
|
|||||||
value: "mongo"
|
value: "mongo"
|
||||||
- name: CRAWLAB_REDIS_ADDRESS
|
- name: CRAWLAB_REDIS_ADDRESS
|
||||||
value: "redis"
|
value: "redis"
|
||||||
# - name: CRAWLAB_SERVER_LANG_NODE
|
- name: CRAWLAB_SETTING_ALLOWREGISTER
|
||||||
# value: "Y"
|
value: "Y"
|
||||||
# - name: CRAWLAB_SERVER_LANG_JAVA
|
- name: CRAWLAB_SERVER_LANG_NODE
|
||||||
# value: "Y"
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_LANG_JAVA
|
||||||
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_LANG_DOTNET
|
||||||
|
value: "N"
|
||||||
|
- name: CRAWLAB_SERVER_REGISTER_TYPE
|
||||||
|
value: "hostname"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: crawlab
|
name: crawlab
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: crawlab-worker
|
name: crawlab-worker
|
||||||
namespace: crawlab
|
namespace: crawlab-master
|
||||||
spec:
|
spec:
|
||||||
replicas: 4
|
serviceName: crawlab-worker
|
||||||
strategy:
|
replicas: 2
|
||||||
type: Recreate
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: crawlab-worker
|
app: crawlab-worker
|
||||||
@@ -26,7 +25,11 @@ spec:
|
|||||||
value: "mongo"
|
value: "mongo"
|
||||||
- name: CRAWLAB_REDIS_ADDRESS
|
- name: CRAWLAB_REDIS_ADDRESS
|
||||||
value: "redis"
|
value: "redis"
|
||||||
# - name: CRAWLAB_SERVER_LANG_NODE
|
- name: CRAWLAB_SERVER_LANG_NODE
|
||||||
# value: "Y"
|
value: "Y"
|
||||||
# - name: CRAWLAB_SERVER_LANG_JAVA
|
- name: CRAWLAB_SERVER_LANG_JAVA
|
||||||
# value: "Y"
|
value: "Y"
|
||||||
|
- name: CRAWLAB_SERVER_LANG_DOTNET
|
||||||
|
value: "Y"
|
||||||
|
- name: CRAWLAB_SERVER_REGISTER_TYPE
|
||||||
|
value: "hostname"
|
||||||
|
|||||||
Reference in New Issue
Block a user