From cd14ae1d9ed1d710da6a8009776f24019d1aa13b Mon Sep 17 00:00:00 2001 From: Luc Juggery Date: Tue, 9 Oct 2018 21:51:59 +0200 Subject: [PATCH] Add namespace to k8s deployments and services --- k8s-specifications/db-deployment.yaml | 1 + k8s-specifications/db-service.yaml | 1 + k8s-specifications/redis-deployment.yaml | 1 + k8s-specifications/redis-service.yaml | 1 + k8s-specifications/result-deployment.yaml | 1 + k8s-specifications/result-service.yaml | 1 + k8s-specifications/vote-deployment.yaml | 1 + k8s-specifications/vote-service.yaml | 1 + k8s-specifications/worker-deployment.yaml | 1 + 9 files changed, 9 insertions(+) diff --git a/k8s-specifications/db-deployment.yaml b/k8s-specifications/db-deployment.yaml index 774c54a..3fff55b 100644 --- a/k8s-specifications/db-deployment.yaml +++ b/k8s-specifications/db-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: db + namespace: vote spec: replicas: 1 template: diff --git a/k8s-specifications/db-service.yaml b/k8s-specifications/db-service.yaml index 81f59b4..c4b2568 100644 --- a/k8s-specifications/db-service.yaml +++ b/k8s-specifications/db-service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: db + namespace: vote spec: type: ClusterIP ports: diff --git a/k8s-specifications/redis-deployment.yaml b/k8s-specifications/redis-deployment.yaml index a606e5c..d067027 100644 --- a/k8s-specifications/redis-deployment.yaml +++ b/k8s-specifications/redis-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: redis + namespace: vote spec: replicas: 1 template: diff --git a/k8s-specifications/redis-service.yaml b/k8s-specifications/redis-service.yaml index 1c6cda4..149be37 100644 --- a/k8s-specifications/redis-service.yaml +++ b/k8s-specifications/redis-service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: redis + namespace: vote spec: type: ClusterIP ports: diff --git a/k8s-specifications/result-deployment.yaml b/k8s-specifications/result-deployment.yaml index bd29380..e07dd74 100644 --- a/k8s-specifications/result-deployment.yaml +++ b/k8s-specifications/result-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: result + namespace: vote spec: replicas: 1 template: diff --git a/k8s-specifications/result-service.yaml b/k8s-specifications/result-service.yaml index 7a9793c..ec45551 100644 --- a/k8s-specifications/result-service.yaml +++ b/k8s-specifications/result-service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: result + namespace: vote spec: type: NodePort ports: diff --git a/k8s-specifications/vote-deployment.yaml b/k8s-specifications/vote-deployment.yaml index ccd5b27..7511c37 100644 --- a/k8s-specifications/vote-deployment.yaml +++ b/k8s-specifications/vote-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: vote + namespace: vote spec: replicas: 1 template: diff --git a/k8s-specifications/vote-service.yaml b/k8s-specifications/vote-service.yaml index 45f20a8..d0caed4 100644 --- a/k8s-specifications/vote-service.yaml +++ b/k8s-specifications/vote-service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: vote + namespace: vote spec: type: NodePort ports: diff --git a/k8s-specifications/worker-deployment.yaml b/k8s-specifications/worker-deployment.yaml index 9d483de..10f3027 100644 --- a/k8s-specifications/worker-deployment.yaml +++ b/k8s-specifications/worker-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: worker + namespace: vote spec: replicas: 1 template: