Use domain name instead of IP for consul
[oom.git] / kubernetes / msb / templates / msb-discovery-deployment.yaml
index 535eab9..3af9e8f 100644 (file)
@@ -21,7 +21,7 @@ spec:
         name: "msb-discovery"
         env:
         - name: CONSUL_IP
-          value: "{{ .Values.consulClusterIP }}"
+          value: msb-consul.{{ .Values.nsPrefix }}-msb
         ports:
         - containerPort: {{ .Values.discoveryPort }}
           name: msb-discovery
@@ -31,5 +31,6 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
         imagePullPolicy: {{ .Values.pullPolicy }}
-
+      imagePullSecrets:
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"