diff --git a/smardigo/templates/elastic/external-elastic-service.yml b/smardigo/templates/elastic/external-elastic-service.yml new file mode 100644 index 0000000..3736534 --- /dev/null +++ b/smardigo/templates/elastic/external-elastic-service.yml @@ -0,0 +1,60 @@ +--- +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