mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-25 04:59:31 +00:00
25 lines
632 B
YAML
25 lines
632 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: {{ include "ethereum.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "ethereum.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
type: {{ .Values.service.type }}
|
||
|
ports:
|
||
|
{{- if hasKey .Values.service "ports" }}
|
||
|
{{- range .Values.service.ports }}
|
||
|
- port: {{ .port }}
|
||
|
name: {{ .name }}
|
||
|
targetPort: {{ .targetPort }}
|
||
|
protocol: {{ .protocol }}
|
||
|
{{- end }}
|
||
|
{{- else }}
|
||
|
- port: {{ .Values.service.port }}
|
||
|
targetPort: http
|
||
|
protocol: TCP
|
||
|
name: http
|
||
|
{{- end }}
|
||
|
selector:
|
||
|
{{- include "ethereum.selectorLabels" . | nindent 4 }}
|