aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/msb
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-08-30 09:30:03 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-08-30 09:39:28 +0800
commit77d44cd0a190e5663c08d6fcd3b6f2013add5171 (patch)
tree18037da5a9ff8162b14f4f4aaec07ffb4acb741a /kubernetes/msb
parent4ea06553753981bc663fd5fa7961628d03385564 (diff)
parameterization replica number
Issue-Id: OOM-113 Change-Id: I483e6e9942a3cf7ffd486c8ac53e8f458baa0c21 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'kubernetes/msb')
-rw-r--r--kubernetes/msb/templates/all-services.yaml2
-rw-r--r--kubernetes/msb/templates/msb-discovery-deployment.yaml2
-rw-r--r--kubernetes/msb/templates/msb-eag-deployment.yaml2
-rw-r--r--kubernetes/msb/templates/msb-iag-deployment.yaml2
-rw-r--r--kubernetes/msb/values.yaml3
5 files changed, 7 insertions, 4 deletions
diff --git a/kubernetes/msb/templates/all-services.yaml b/kubernetes/msb/templates/all-services.yaml
index 80892fe728..88f5a9af0e 100644
--- a/kubernetes/msb/templates/all-services.yaml
+++ b/kubernetes/msb/templates/all-services.yaml
@@ -8,7 +8,7 @@ spec:
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 a5d014aae4..0fcd2f9ba9 100644
--- a/kubernetes/msb/templates/msb-discovery-deployment.yaml
+++ b/kubernetes/msb/templates/msb-discovery-deployment.yaml
@@ -3,7 +3,7 @@ kind: Deployment
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 45b8879bb3..eb75cd9e42 100644
--- a/kubernetes/msb/templates/msb-eag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-eag-deployment.yaml
@@ -3,7 +3,7 @@ kind: Deployment
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 655df0e4c3..d83951a415 100644
--- a/kubernetes/msb/templates/msb-iag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-iag-deployment.yaml
@@ -3,7 +3,7 @@ kind: Deployment
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 8877000c91..6d76d83a37 100644
--- a/kubernetes/msb/values.yaml
+++ b/kubernetes/msb/values.yaml
@@ -4,6 +4,9 @@ consulPort: 8500
consulNodePort: 30500
discoveryPort: 10081
discoveryNodePort: 30081
+discoveryReplicas: 1
+iagReplicas: 1
+eagReplicas: 1
iagPort: 80
iagNodePort: 30080
eagPort: 80