From 425f0ed3b727d1da38be6a0db2afa8b615b66c9a Mon Sep 17 00:00:00 2001 From: vaibhav_16dec Date: Fri, 16 Feb 2018 07:15:59 +0000 Subject: Replica scaling of Robot and MSB container Issue-ID: OOM-693 Change-Id: Ibcdfd5c2a8c55eb28d6acd16e7a9b0f1faaef65b Signed-off-by: vaibhav_16dec --- kubernetes/msb/templates/msb-consul-deployment.yaml | 4 ++-- kubernetes/msb/values.yaml | 1 + kubernetes/robot/templates/robot-deployment.yaml | 1 + kubernetes/robot/values.yaml | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kubernetes/msb/templates/msb-consul-deployment.yaml b/kubernetes/msb/templates/msb-consul-deployment.yaml index 850dd08439..7d7586c5f6 100644 --- a/kubernetes/msb/templates/msb-consul-deployment.yaml +++ b/kubernetes/msb/templates/msb-consul-deployment.yaml @@ -5,7 +5,7 @@ metadata: name: msb-consul namespace: "{{ .Values.nsPrefix }}" spec: - replicas: 1 + replicas: {{ .Values.msbConsulReplicas }} selector: matchLabels: app: msb-consul @@ -29,4 +29,4 @@ spec: initialDelaySeconds: 5 periodSeconds: 10 imagePullPolicy: {{ .Values.pullPolicy }} -#{{ end }} \ No newline at end of file +#{{ end }} diff --git a/kubernetes/msb/values.yaml b/kubernetes/msb/values.yaml index ec9585a949..8c50e37e2b 100644 --- a/kubernetes/msb/values.yaml +++ b/kubernetes/msb/values.yaml @@ -8,6 +8,7 @@ image: consulPort: 8500 consulNodePort: 30500 +msbConsulReplicas: 1 discoveryPort: 10081 discoveryNodePort: 30081 diff --git a/kubernetes/robot/templates/robot-deployment.yaml b/kubernetes/robot/templates/robot-deployment.yaml index ac176c4039..a978ff4f41 100644 --- a/kubernetes/robot/templates/robot-deployment.yaml +++ b/kubernetes/robot/templates/robot-deployment.yaml @@ -5,6 +5,7 @@ metadata: name: robot namespace: "{{ .Values.nsPrefix }}" spec: + replicas: {{ .Values.robotReplicas }} selector: matchLabels: app: robot diff --git a/kubernetes/robot/values.yaml b/kubernetes/robot/values.yaml index 221b572264..6aadd93647 100644 --- a/kubernetes/robot/values.yaml +++ b/kubernetes/robot/values.yaml @@ -1,6 +1,7 @@ nsPrefix: onap pullPolicy: Always nodePortPrefix: 302 +robotReplicas: 1 image: testsuite: nexus3.onap.org:10001/openecomp/testsuite:1.1-STAGING-latest -- cgit 1.2.3-korg