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