feature: add grpc port and config in helm chart

This commit is contained in:
chechia 2022-05-04 14:59:13 +08:00
parent 406681b5fa
commit f323047353
3 changed files with 14 additions and 0 deletions

View File

@ -51,6 +51,8 @@ spec:
{{- end }} {{- end }}
{{- if .Values.grpc.enabled }} {{- if .Values.grpc.enabled }}
- "--enable-grpc" - "--enable-grpc"
- "--grpc-bind"
- {{ .Values.grpc.port | default 50051 | quote }}
{{- end }} {{- end }}
{{- if .Values.debug.enabled }} {{- if .Values.debug.enabled }}
- "--debug" - "--debug"
@ -62,6 +64,11 @@ spec:
containerPort: 8080 containerPort: 8080
protocol: TCP protocol: TCP
{{- end }} {{- end }}
{{- if .Values.grpc.enabled }}
- name: grpc
containerPort: {{ .Values.grpc.port | default 50051 }}
protocol: TCP
{{- end }}
{{- if .Values.metrics.enabled }} {{- if .Values.metrics.enabled }}
- name: metrics - name: metrics
containerPort: 9090 containerPort: 9090

View File

@ -11,5 +11,11 @@ spec:
targetPort: http targetPort: http
protocol: TCP protocol: TCP
name: http name: http
{{- if .Values.grpc.enabled }}
- port: {{ .Values.grpc.port | default 50051 }}
targetPort: grpc
protocol: TCP
name: grpc
{{- end }}
selector: selector:
{{- include "bbgo.selectorLabels" . | nindent 4 }} {{- include "bbgo.selectorLabels" . | nindent 4 }}

View File

@ -76,6 +76,7 @@ metrics:
grpc: grpc:
enabled: false enabled: false
port: 50051
debug: debug:
enabled: false enabled: false