Merge "Replica Scaling of MultiCloud and UUI container"
[oom.git] / kubernetes / uui / templates / uui-deployment.yaml
index 41d33b1..6685749 100644 (file)
@@ -5,8 +5,9 @@ metadata:
   labels:
     app: uui
   name: uui
-  namespace: "{{ .Values.nsPrefix }}-uui"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
+  replicas: {{ .Values.uuiReplicas }}
   selector:
     matchLabels:
       app: uui
@@ -24,6 +25,9 @@ spec:
           - -c
           - /home/uui/tomcat/bin/catalina.sh run
         name: uui
+        env:
+        - name: MSB_ADDR
+          value: {{ tpl .Values.msbaddr . }}
         ports:
         - containerPort: 8080
         readinessProbe:
@@ -33,4 +37,4 @@ spec:
           periodSeconds: 10
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }}
\ No newline at end of file
+#{{ end }}