mirror of https://github.com/easzlab/kubeasz.git
20 lines
532 B
YAML
20 lines
532 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: {{ template "elasticsearch.name" . }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
component: "{{ .Values.master.name }}"
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
name: {{ template "elasticsearch.fullname" . }}-discovery
|
|
spec:
|
|
clusterIP: None
|
|
ports:
|
|
- port: 9300
|
|
targetPort: transport
|
|
selector:
|
|
app: {{ template "elasticsearch.name" . }}
|
|
component: "{{ .Values.master.name }}"
|
|
release: {{ .Release.Name }}
|