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
metadata:
name: crawlab
namespace: crawlab-master
namespace: crawlab
spec:
ports:
- port: 8080

View File

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

4
k8s/ns.yaml Normal file
View File

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