parameterization replica number
Issue-Id: OOM-113
Change-Id: I483e6e9942a3cf7ffd486c8ac53e8f458baa0c21
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 80892fe..88f5a9a 100644
--- a/kubernetes/msb/templates/all-services.yaml
+++ b/kubernetes/msb/templates/all-services.yaml
@@ -8,7 +8,7 @@
clusterIP: "{{ .Values.consulClusterIP }}"
ports:
- port: {{ .Values.consulPort }}
- nodePort: "{{ .Values.consulNodePort }}"
+ nodePort: {{ .Values.consulNodePort }}
selector:
app: msb-consul
type: NodePort
diff --git a/kubernetes/msb/templates/msb-discovery-deployment.yaml b/kubernetes/msb/templates/msb-discovery-deployment.yaml
index a5d014a..0fcd2f9 100644
--- a/kubernetes/msb/templates/msb-discovery-deployment.yaml
+++ b/kubernetes/msb/templates/msb-discovery-deployment.yaml
@@ -3,7 +3,7 @@
metadata:
name: msb-discovery
spec:
- replicas: 2
+ replicas: {{ .Values.discoveryReplicas }}
selector:
matchLabels:
app: msb-discovery
diff --git a/kubernetes/msb/templates/msb-eag-deployment.yaml b/kubernetes/msb/templates/msb-eag-deployment.yaml
index 45b8879..eb75cd9 100644
--- a/kubernetes/msb/templates/msb-eag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-eag-deployment.yaml
@@ -3,7 +3,7 @@
metadata:
name: msb-eag
spec:
- replicas: 2
+ replicas: {{ .Values.eagReplicas }}
selector:
matchLabels:
app: msb-eag
diff --git a/kubernetes/msb/templates/msb-iag-deployment.yaml b/kubernetes/msb/templates/msb-iag-deployment.yaml
index 655df0e..d83951a 100644
--- a/kubernetes/msb/templates/msb-iag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-iag-deployment.yaml
@@ -3,7 +3,7 @@
metadata:
name: msb-iag
spec:
- replicas: 2
+ replicas: {{ .Values.iagReplicas }}
selector:
matchLabels:
app: msb-iag
diff --git a/kubernetes/msb/values.yaml b/kubernetes/msb/values.yaml
index 8877000..6d76d83 100644
--- a/kubernetes/msb/values.yaml
+++ b/kubernetes/msb/values.yaml
@@ -4,6 +4,9 @@
consulNodePort: 30500
discoveryPort: 10081
discoveryNodePort: 30081
+discoveryReplicas: 1
+iagReplicas: 1
+eagReplicas: 1
iagPort: 80
iagNodePort: 30080
eagPort: 80