Run all components in one namespace
[oom.git] / kubernetes / msb / templates / msb-consul-deployment.yaml
index 0d98896..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,14 +18,15 @@ spec:
       hostname: msb-consul
       containers:
       - args:
-        image: consul
-        name: "msb-consul"
+        image: {{ .Values.image.consul }}
+        name: msb-consul
         ports:
-        - containerPort: 8500
+        - containerPort: {{ .Values.consulPort }}
           name: msb-consul
         readinessProbe:
           tcpSocket:
-            port: 8500
+            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