Run all components in one namespace
[oom.git] / kubernetes / uui / templates / uui-deployment.yaml
index e23202a..1e18009 100644 (file)
@@ -1,10 +1,11 @@
+#{{ if not .Values.disableUuiUui }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   labels:
     app: uui
   name: uui
-  namespace: "{{ .Values.nsPrefix }}-uui"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
   selector:
     matchLabels:
@@ -23,6 +24,9 @@ spec:
           - -c
           - /home/uui/tomcat/bin/catalina.sh run
         name: uui
+        env:
+        - name: MSB_ADDR
+          value: {{ tpl .Values.msbaddr . }}
         ports:
         - containerPort: 8080
         readinessProbe:
@@ -32,3 +36,4 @@ spec:
           periodSeconds: 10
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}