Use domain name instead of IP for consul
Issue-Id: OOM-113
Change-Id: I41e6f72337a15c1d07b444b09171204d8eb378ec
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
diff --git a/kubernetes/msb/templates/all-services.yaml b/kubernetes/msb/templates/all-services.yaml
index 4ec4656..aeb4f5e 100644
--- a/kubernetes/msb/templates/all-services.yaml
+++ b/kubernetes/msb/templates/all-services.yaml
@@ -6,7 +6,6 @@
labels:
app: msb-consul
spec:
- clusterIP: "{{ .Values.consulClusterIP }}"
ports:
- port: {{ .Values.consulPort }}
nodePort: {{ .Values.consulNodePort }}
@@ -35,29 +34,27 @@
metadata:
name: msb-iag
namespace: "{{ .Values.nsPrefix }}-msb"
- labels:
- app: msb-iag
-spec:
- clusterIP: "{{ .Values.iagClusterIP }}"
- ports:
- - port: {{ .Values.iagPort }}
- nodePort: {{ .Values.iagNodePort }}
- selector:
- app: msb-iag
- type: NodePort
----
-apiVersion: v1
-kind: Service
-metadata:
- name: msb-eag
- namespace: "{{ .Values.nsPrefix }}-msb"
- labels:
- app: msb-eag
-spec:
- clusterIP: "{{ .Values.eagClusterIP }}"
- ports:
- - port: {{ .Values.eagPort }}
- nodePort: {{ .Values.eagNodePort }}
- selector:
- app: msb-eag
- type: NodePort
\ No newline at end of file
+ labels:
+ app: msb-iag
+ spec:
+ ports:
+ - port: {{ .Values.iagPort }}
+ nodePort: {{ .Values.iagNodePort }}
+ selector:
+ app: msb-iag
+ type: NodePort
+ ---
+ apiVersion: v1
+ kind: Service
+ metadata:
+ name: msb-eag
+ namespace: "{{ .Values.nsPrefix }}-msb"
+ labels:
+ app: msb-eag
+ spec:
+ ports:
+ - port: {{ .Values.eagPort }}
+ nodePort: {{ .Values.eagNodePort }}
+ selector:
+ app: msb-eag
+ type: NodePort
\ No newline at end of file
diff --git a/kubernetes/msb/templates/msb-discovery-deployment.yaml b/kubernetes/msb/templates/msb-discovery-deployment.yaml
index 24cb3a5..3af9e8f 100644
--- a/kubernetes/msb/templates/msb-discovery-deployment.yaml
+++ b/kubernetes/msb/templates/msb-discovery-deployment.yaml
@@ -21,7 +21,7 @@
name: "msb-discovery"
env:
- name: CONSUL_IP
- value: "{{ .Values.consulClusterIP }}"
+ value: msb-consul.{{ .Values.nsPrefix }}-msb
ports:
- containerPort: {{ .Values.discoveryPort }}
name: msb-discovery
diff --git a/kubernetes/msb/templates/msb-eag-deployment.yaml b/kubernetes/msb/templates/msb-eag-deployment.yaml
index d1c20ad..db703d9 100644
--- a/kubernetes/msb/templates/msb-eag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-eag-deployment.yaml
@@ -21,7 +21,7 @@
name: "msb-eag"
env:
- name: CONSUL_IP
- value: "{{ .Values.consulClusterIP}}"
+ value: msb-consul.{{ .Values.nsPrefix }}-msb
- name: SDCLIENT_IP
value: "{{ .Values.discoveryClusterIP}}"
- name: ROUTE_LABELS
diff --git a/kubernetes/msb/templates/msb-iag-deployment.yaml b/kubernetes/msb/templates/msb-iag-deployment.yaml
index 3ab9f9a..3f82e33 100644
--- a/kubernetes/msb/templates/msb-iag-deployment.yaml
+++ b/kubernetes/msb/templates/msb-iag-deployment.yaml
@@ -21,7 +21,7 @@
name: "msb-iag"
env:
- name: CONSUL_IP
- value: "{{ .Values.consulClusterIP}}"
+ value: msb-consul.{{ .Values.nsPrefix }}-msb
- name: SDCLIENT_IP
value: "{{ .Values.discoveryClusterIP}}"
- name: ROUTE_LABELS