diff --git a/smardigo/templates/connect/deployment.yml b/smardigo/templates/connect/deployment.yml index 98c3912..26c93c2 100644 --- a/smardigo/templates/connect/deployment.yml +++ b/smardigo/templates/connect/deployment.yml @@ -19,6 +19,15 @@ spec: - ip: "{{ .Values.sharedService.postgres.host.ip }}" hostnames: - "{{ .Values.sharedService.postgres.host.name }}" + - ip: "{{ .Values.sharedService.elastic.host01.ip }}" + hostnames: + - "{{ .Values.sharedService.elastic.host01.name }}" + - ip: "{{ .Values.sharedService.elastic.host02.ip }}" + hostnames: + - "{{ .Values.sharedService.elastic.host02.name }}" + - ip: "{{ .Values.sharedService.elastic.host03.ip }}" + hostnames: + - "{{ .Values.sharedService.elastic.host03.name }}" volumes: - name: elastic-client-cert secret: diff --git a/smardigo/templates/elastic/external-elastic-service.yml b/smardigo/templates/elastic/external-elastic-service.yml deleted file mode 100644 index 3736534..0000000 --- a/smardigo/templates/elastic/external-elastic-service.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: "{{ .Values.sharedService.elastic.host01.name }}" -spec: - ports: - - protocol: TCP - port: 9200 - targetPort: 9200 ---- -apiVersion: v1 -kind: Endpoints -metadata: - name: "{{ .Values.sharedService.elastic.host01.name }}" -subsets: - - addresses: - - ip: {{ .Values.sharedService.elastic.host01.ip }} - ports: - - port: 9200 ---- -apiVersion: v1 -kind: Service -metadata: - name: "{{ .Values.sharedService.elastic.host02.name }}" -spec: - ports: - - protocol: TCP - port: 9200 - targetPort: 9200 ---- -apiVersion: v1 -kind: Endpoints -metadata: - name: "{{ .Values.sharedService.elastic.host02.name }}" -subsets: - - addresses: - - ip: {{ .Values.sharedService.elastic.host02.ip }} - ports: - - port: 9200 ---- -apiVersion: v1 -kind: Service -metadata: - name: "{{ .Values.sharedService.elastic.host03.name }}" -spec: - ports: - - protocol: TCP - port: 9200 - targetPort: 9200 ---- -apiVersion: v1 -kind: Endpoints -metadata: - name: "{{ .Values.sharedService.elastic.host03.name }}" -subsets: - - addresses: - - ip: {{ .Values.sharedService.elastic.host03.ip }} - ports: - - port: 9200 \ No newline at end of file