Merge pull request #123 from lucj/master

Add namespace to k8s deployments and services
This commit is contained in:
Mano Marks 2018-10-10 01:27:28 -07:00 committed by GitHub
commit 59ec1dfc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: db
namespace: vote
spec:
replicas: 1
template:

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: db
namespace: vote
spec:
type: ClusterIP
ports:

View File

@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: redis
namespace: vote
spec:
replicas: 1
template:

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: redis
namespace: vote
spec:
type: ClusterIP
ports:

View File

@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: result
namespace: vote
spec:
replicas: 1
template:

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: result
namespace: vote
spec:
type: NodePort
ports:

View File

@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: vote
namespace: vote
spec:
replicas: 1
template:

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: vote
namespace: vote
spec:
type: NodePort
ports:

View File

@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: worker
namespace: vote
spec:
replicas: 1
template: