Skip to content

Commit 59ec1df

Browse files
author
Mano Marks
authored
Merge pull request dockersamples#123 from lucj/master
Add namespace to k8s deployments and services
2 parents bba8019 + cd14ae1 commit 59ec1df

9 files changed

+9
-0
lines changed

k8s-specifications/db-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: db
5+
namespace: vote
56
spec:
67
replicas: 1
78
template:

k8s-specifications/db-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: db
5+
namespace: vote
56
spec:
67
type: ClusterIP
78
ports:

k8s-specifications/redis-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: redis
5+
namespace: vote
56
spec:
67
replicas: 1
78
template:

k8s-specifications/redis-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: redis
5+
namespace: vote
56
spec:
67
type: ClusterIP
78
ports:

k8s-specifications/result-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: result
5+
namespace: vote
56
spec:
67
replicas: 1
78
template:

k8s-specifications/result-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: result
5+
namespace: vote
56
spec:
67
type: NodePort
78
ports:

k8s-specifications/vote-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: vote
5+
namespace: vote
56
spec:
67
replicas: 1
78
template:

k8s-specifications/vote-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: vote
5+
namespace: vote
56
spec:
67
type: NodePort
78
ports:

k8s-specifications/worker-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: worker
5+
namespace: vote
56
spec:
67
replicas: 1
78
template:

0 commit comments

Comments
 (0)