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 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: