mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
22 lines
514 B
YAML
22 lines
514 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "bbgo.fullname" . }}
|
|
labels:
|
|
{{- include "bbgo.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{- if .Values.grpc.enabled }}
|
|
- port: {{ .Values.grpc.port | default 50051 }}
|
|
targetPort: grpc
|
|
protocol: TCP
|
|
name: grpc
|
|
{{- end }}
|
|
selector:
|
|
{{- include "bbgo.selectorLabels" . | nindent 4 }}
|