20 lines
477 B
YAML
20 lines
477 B
YAML
|
{{- if .Values.enabled }}
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: {{ template "chainquery.fullname" . }}
|
||
|
labels:
|
||
|
app: {{ template "chainquery.name" . }}
|
||
|
chart: {{ template "chainquery.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: port
|
||
|
port: {{ .Values.service.port }}
|
||
|
targetPort: port
|
||
|
selector:
|
||
|
app: {{ template "chainquery.name" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
{{- end }}
|