mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +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 }}
|
{{- 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: /
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user