Merge pull request #587 from chechiachang/feature/add-grpc-port-config-in-helm-charts

feature: add grpc port and config in helm chart
This commit is contained in:
Yo-An Lin 2022-05-04 15:37:32 +08:00 committed by GitHub
commit 4e9c197d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

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

View File

@ -11,5 +11,11 @@ spec:
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 }}

View File

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