add namespace
Issue-ID: OOM-113
Change-Id: Ifaa978ed6156a661ae8312959fd4dc70a8029e32
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
diff --git a/kubernetes/msb/templates/all-services.yaml b/kubernetes/msb/templates/all-services.yaml
index b67808d..4ec4656 100644
--- a/kubernetes/msb/templates/all-services.yaml
+++ b/kubernetes/msb/templates/all-services.yaml
@@ -2,6 +2,7 @@
kind: Service
metadata:
name: msb-consul
+ namespace: "{{ .Values.nsPrefix }}-msb"
labels:
app: msb-consul
spec:
@@ -17,6 +18,7 @@
kind: Service
metadata:
name: msb-discovery
+ namespace: "{{ .Values.nsPrefix }}-msb"
labels:
app: msb-discovery
spec:
@@ -32,6 +34,7 @@
kind: Service
metadata:
name: msb-iag
+ namespace: "{{ .Values.nsPrefix }}-msb"
labels:
app: msb-iag
spec:
@@ -47,6 +50,7 @@
kind: Service
metadata:
name: msb-eag
+ namespace: "{{ .Values.nsPrefix }}-msb"
labels:
app: msb-eag
spec:
diff --git a/kubernetes/msb/templates/msb-consul-deployment.yaml b/kubernetes/msb/templates/msb-consul-deployment.yaml
index de33961..fc8a95a 100644
--- a/kubernetes/msb/templates/msb-consul-deployment.yaml
+++ b/kubernetes/msb/templates/msb-consul-deployment.yaml
@@ -2,6 +2,7 @@
kind: Deployment
metadata:
name: msb-consul
+ namespace: "{{ .Values.nsPrefix }}-msb"
spec:
replicas: 1
selector:
diff --git a/kubernetes/msb/templates/msb-discovery-deployment.yaml b/kubernetes/msb/templates/msb-discovery-deployment.yaml
index b54f3d1..535eab9 100644
--- a/kubernetes/msb/templates/msb-discovery-deployment.yaml
+++ b/kubernetes/msb/templates/msb-discovery-deployment.yaml
@@ -2,6 +2,7 @@
kind: Deployment
metadata:
name: msb-discovery
+ namespace: "{{ .Values.nsPrefix }}-msb"
spec:
replicas: {{ .Values.discoveryReplicas }}
selector:
diff --git a/kubernetes/msb/templates/msb-eag-deployment.yaml b/kubernetes/msb/templates/msb-eag-deployment.yaml
index c4697ba..eb60fe2 100644
--- a/kubernetes/msb/templates/msb-eag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-eag-deployment.yaml
@@ -2,6 +2,7 @@
kind: Deployment
metadata:
name: msb-eag
+ namespace: "{{ .Values.nsPrefix }}-msb"
spec:
replicas: {{ .Values.eagReplicas }}
selector:
diff --git a/kubernetes/msb/templates/msb-iag-deployment.yaml b/kubernetes/msb/templates/msb-iag-deployment.yaml
index d83951a..180c315 100644
--- a/kubernetes/msb/templates/msb-iag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-iag-deployment.yaml
@@ -2,6 +2,7 @@
kind: Deployment
metadata:
name: msb-iag
+ namespace: "{{ .Values.nsPrefix }}-msb"
spec:
replicas: {{ .Values.iagReplicas }}
selector: