mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
49 lines
1014 B
YAML
49 lines
1014 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: crawlab
|
|
namespace: crawlab-develop
|
|
spec:
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
nodePort: 30108
|
|
selector:
|
|
app: crawlab-master
|
|
type: NodePort
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: crawlab-master
|
|
namespace: crawlab-develop
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: crawlab-master
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: crawlab-master
|
|
spec:
|
|
containers:
|
|
- image: tikazyq/crawlab:develop
|
|
name: crawlab
|
|
env:
|
|
- name: CRAWLAB_SERVER_MASTER
|
|
value: "Y"
|
|
- name: CRAWLAB_MONGO_HOST
|
|
value: "mongo"
|
|
- name: CRAWLAB_REDIS_ADDRESS
|
|
value: "redis"
|
|
- name: CRAWLAB_SETTING_ALLOWREGISTER
|
|
value: "Y"
|
|
- name: CRAWLAB_SERVER_LANG_NODE
|
|
value: "Y"
|
|
- name: CRAWLAB_SERVER_LANG_JAVA
|
|
value: "Y"
|
|
ports:
|
|
- containerPort: 8080
|
|
name: crawlab |