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 kind: Deployment
metadata: metadata:
name: db name: db
namespace: vote
spec: spec:
replicas: 1 replicas: 1
template: template:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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