Files
Olares/frameworks/GPU/config/gpu/hami/templates/webui/configmap.yaml
eball ffce1b6039 olares: hami monitoring api for dashboard (#1192)
* feat: hami monitoring api for dashboard

* fix: values bug

---------

Co-authored-by: liuyu <>
2025-04-09 23:17:38 +08:00

21 lines
716 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "hami-webui.fullname" . }}-config
namespace: {{ include "hami-webui.namespace" . }}
data:
config.yaml: |
server:
http:
addr: 0.0.0.0:8000
timeout: 1s
grpc:
addr: 0.0.0.0:9000
timeout: 1s
prometheus:
address: {{ ternary .Values.webui.externalPrometheus.address (printf "http://%s-kube-prometh-prometheus.%s.svc.cluster.local:9090" (include "hami-webui.fullname" .) (include "hami-webui.namespace" .)) .Values.webui.externalPrometheus.enabled }}
timeout: 1m
node_selectors:
{{- range $key, $value := .Values.webui.vendorNodeSelectors }}
{{ $key }}: {{ $value }}
{{- end }}