You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: "{{ .Values.sharedService.elastic.host01.name }}"
|
|
labels:
|
|
app: "{{ .Values.sharedService.elastic.host01.name }}"
|
|
spec:
|
|
selector:
|
|
app: "{{ .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 }}"
|
|
labels:
|
|
app: "{{ .Values.sharedService.elastic.host02.name }}"
|
|
spec:
|
|
selector:
|
|
app: "{{ .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 }}"
|
|
labels:
|
|
app: "{{ .Values.sharedService.elastic.host03.name }}"
|
|
spec:
|
|
selector:
|
|
app: "{{ .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
|