chart: add webserver option and metrics option

This commit is contained in:
c9s 2021-12-27 23:42:05 +08:00
parent dbaf61d662
commit 382449ec49
2 changed files with 22 additions and 4 deletions

View File

@ -33,10 +33,24 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
# ports:
# - name: http
# containerPort: 80
# protocol: TCP
args:
{{- if .Values.metrics.enabled }}
- "--metrics"
- "--metrics-port"
- {{ .Values.metrics.port | quote }}
{{- end }}
- "run"
- "--config"
- "/config/bbgo.yaml"
- "--no-compile"
{{- if .Values.webserver.enabled }}
- "--enable-webserver"
{{- end }}
ports:
- name: metrics
containerPort: 9090
protocol: TCP
# livenessProbe:
# httpGet:
# path: /

View File

@ -64,8 +64,12 @@ ingress:
# hosts:
# - chart-example.local
webserver:
enabled: false
metrics:
enabled: false
port: 9090
resources:
# We usually recommend not to specify default resources and to leave this as a conscious