mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
chart: add webserver option and metrics option
This commit is contained in:
parent
dbaf61d662
commit
382449ec49
|
@ -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: /
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user