fixed k8s yaml

This commit is contained in:
marvzhang
2020-03-11 18:10:18 +08:00
parent eb552b9eb1
commit c036c0eeb3
3 changed files with 6 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: crawlab name: crawlab
namespace: crawlab-master namespace: crawlab
spec: spec:
ports: ports:
- port: 8080 - port: 8080

View File

@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
name: crawlab-worker name: crawlab-worker
namespace: crawlab-master namespace: crawlab
spec: spec:
serviceName: crawlab-worker serviceName: crawlab-worker
replicas: 2 replicas: 2

4
k8s/ns.yaml Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: crawlab