Merge pull request #123 from lucj/master
Add namespace to k8s deployments and services
This commit is contained in:
commit
59ec1dfc7d
@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: db
|
||||
namespace: vote
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: db
|
||||
namespace: vote
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis
|
||||
namespace: vote
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: redis
|
||||
namespace: vote
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: result
|
||||
namespace: vote
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: result
|
||||
namespace: vote
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: vote
|
||||
namespace: vote
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: vote
|
||||
namespace: vote
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
|
@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: worker
|
||||
namespace: vote
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user