Run all components in one namespace
[oom.git] / kubernetes / vfc / templates / vfc-workflow-deployment.yaml
index 1db80b9..c2a8205 100755 (executable)
@@ -1,8 +1,9 @@
+#{{ if not .Values.disableVfcVfcWorkflow }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: vfc-workflow
-  namespace: "{{ .Values.nsPrefix }}-{{ .Chart.Name }}"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
   replicas: {{ .Values.workflow.replicas }}
   selector:
@@ -20,8 +21,16 @@ spec:
         image:  {{.Values.workflow.image}}
         name: "vfc-workflow"
         env:
-        - name: MSB_ADDR
-          value: {{ .Values.msbaddr }}
+        - name: SERVICE_IP
+          valueFrom:
+            fieldRef:
+              fieldPath: status.podIP
+        - name: SERVICE_PORT
+          value: "{{ .Values.workflow.port }}"
+        - name: OPENPALETTE_MSB_IP
+          value: msb-iag.{{ .Values.nsPrefix }}
+        - name: OPENPALETTE_MSB_PORT
+          value: "80"
         ports:
         - containerPort: {{ .Values.workflow.port }}
         readinessProbe:
@@ -31,4 +40,5 @@ spec:
           periodSeconds: 10
         imagePullPolicy: "{{ .Values.pullPolicy }}"
       imagePullSecrets:
-      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
\ No newline at end of file
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}