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 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
# ports: args:
# - name: http {{- if .Values.metrics.enabled }}
# containerPort: 80 - "--metrics"
# protocol: TCP - "--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: # livenessProbe:
# httpGet: # httpGet:
# path: / # path: /

View File

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