Add namespace to k8s deployments and services

This commit is contained in:
Luc Juggery 2018-10-09 21:51:59 +02:00
parent bba801925e
commit cd14ae1d9e
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: