Run all components in one namespace
[oom.git] / kubernetes / msb / templates / msb-consul-deployment.yaml
index 1dbbe8f..850dd08 100644 (file)
@@ -1,7 +1,9 @@
+#{{ if not .Values.disableMsbMsbConsul }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: msb-consul
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
   replicas: 1
   selector:
@@ -16,8 +18,8 @@ spec:
       hostname: msb-consul
       containers:
       - args:
-        image: consul
-        name: "msb-consul"
+        image: {{ .Values.image.consul }}
+        name: msb-consul
         ports:
         - containerPort: {{ .Values.consulPort }}
           name: msb-consul
@@ -26,4 +28,5 @@ spec:
             port: {{ .Values.consulPort }}
           initialDelaySeconds: 5
           periodSeconds: 10
-        imagePullPolicy: "{{ .Values.pullPolicy }}"
\ No newline at end of file
+        imagePullPolicy: {{ .Values.pullPolicy }}
+#{{ end }}
\ No newline at end of file