跳到主要内容

HAMi AI Platform Chart 0.22.2

发布时间:2026-11-23(UTC)

版本状态:有已知问题

默认 UI v0.13.1 中,慢请求可能拖延集群列表加载,MetaX sGPU 工作负载表单也可能写入错误的显存请求量。Chart 0.22.3 的默认 UI v0.13.2 修复了这些问题。

版本比较基线本版
Chart0.22.10.22.2
appVersion0.16.10.16.2
API Serverv0.16.1v0.16.2
Controller Managerv0.16.1v0.16.2
数据库迁移镜像v0.16.1v0.16.2
UIv0.13.1v0.13.1

数据库迁移容器仅在启用认证且使用 SQLite 时运行。

HAMi Enterprise 兼容性​

已有设备分配、调度和资源池功能参考 Chart 0.21.3 的配套矩阵。授权配套要求沿用 Chart 0.22.1。集群详情 API 与平台自身的 API 延迟监控无需同步升级 HAMi Enterprise。

功能最低可用 HAMi Enterprise 版本配套要求
在 NVIDIA Dynamic MIG 工作负载详情查看运行时实例 UUIDv2.10.0-r0使用 HAMi NVIDIA 设备插件的动态 MIG 模式。插件须将实际实例 UUID 写入 Pod 的 hami.io/vgpu-mig-allocations 注解。
按运行时 MIG UUID 查看容器显存和算力用量v2.11.0-r0使用配套 NVIDIA 设备插件和 vGPUmonitor。监控容器须能读取 MIG 实例,并有匹配的 NVML 和 DCGM profiling 运行库。
从 Pod 注解读取 MetaX sGPU 工作负载的显存分配量v2.9.0-rc0启用 MetaX sGPU,调度器须写入 hami.io/metax-sgpu-devices-allocated。
MetaX sGPU 资源池统计尚未发布(0.22.2 发布时)现已有配套版本,最低 HAMi Enterprise、RPM 与 CRD 要求见 Chart 0.23.0。按池关联监控数据还需要采集带有 node 和 deviceId 标签的 MetaX 指标。

新部署选用旧版本前,查看 Enterprise 镜像可用性说明。

软件变更​

  • GetCluster 返回 ClusterDetail,保留集群配置、就绪状态、节点与工作负载数量、CPU 和内存总量、物理 GPU 卡数和显存,以及显存超分节点。请求不存在的集群详情时返回 HTTP 404。
  • ListClusters 默认仍为就绪集群采集实时资源指标。设置 metadataOnly=true 后,接口仅读取集群记录和最近观测的状态摘要,跳过实时采集。通过 GetClusterMetrics 可单独采集某个集群的指标。
  • API Server 在 /metrics 暴露 kantaloupe_apiserver_request_duration_seconds,按协议、路由或 RPC 方法、状态码统计已完成请求的延迟。通过 HTTP 网关转发的请求只计入 HTTP 指标。可用该直方图在 Grafana 中查看请求速率和 P50、P95、P99 延迟。
  • NVIDIA Dynamic MIG 工作负载按运行时 MIG-… UUID 关联设备详情和指标。UUID 待定时,工作负载详情 API 的设备分配原因为 mig_identity_pending。使用旧布局索引的工作负载仍按原有 DCGM 指标关联。
  • MetaX sGPU 工作负载详情从 Pod 分配注解读取显存分配量,以 MiB 返回。
  • HAMi Enterprise 和 RPM 的配套版本发布后,在 RPM 中启用 MetaX,平台即可读取 sGPU 资源配置,并按节点和设备 ID 将工作负载指标关联到资源池的物理设备。资源池显存统计以 MiB 返回,纯数字按 GiB 换算,带单位的数量按字节换算。
  • 非 NVIDIA 集群的列表和详情在取得 Prometheus 指标时,恢复使用对应指标统计物理 GPU 卡数和显存,修复了 0.22.0 和 0.22.1 中的总量统计问题。NVIDIA 物理显存仍按节点登记计算。
  • 修正 0.22.1 的资源池工作负载计数问题。池列表优先按实际分配计数,尚未分配的工作负载按显式选池计数。API 请求需要创建成员集群客户端时,如果缺少连接 Secret 引用,接口会返回错误。

Chart 变更​

  • 启用 monitoring.enabled 时,Chart 为 API Server 创建 ServiceMonitor,每 15 秒采集一次 /metrics。
  • 更新 NVIDIA 工作负载记录规则。运行时 MIG 的算力用量按实例分配的算力比例换算,算力分配记录按实例采集。
  • CRD 认证后端新增 auth.crdQPS 和 auth.crdBurst。默认值为每副本每秒 50 个 Kubernetes API 请求、突发 100 个请求。两个值都必须大于 0。

已知问题​

问题影响范围规避方法修复版本
慢请求拖延集群卡片加载集群列表和工作范围切换弹窗需等待集群数据和统计请求返回。单个慢请求可能拖延其他卡片展示和页面跳转。升级至 Chart 0.22.3,或将 ui.image.tag 设为 v0.13.2 并配套后端 v0.16.2。Chart 0.22.3
MetaX sGPU 显存请求单位可能不正确表单根据集群名称和输入单位换算 metax-tech.com/vmemory,保存的请求量可能与预期的 GiB 数值不符。核对工作负载清单中的值。通过清单设置预期的整数 GiB 请求量,或更新 UI 后再编辑。Chart 0.22.3
资源池列表在绑定完成前打开创建资源池后,表单返回列表,后台继续绑定选定的设备和命名空间。绑定失败时,部分所选项可能未绑定。核对已创建资源池的绑定并补齐缺项。Chart 0.22.3

升级说明​

  • 如果客户端通过 GetCluster 读取用量、分配量、GPU 算力容量或 GPU 可分配容量,改用 GET /apis/kantaloupe.dynamia.ai/v1/clusters/{cluster}/metrics 或默认模式的 ListClusters。GetClusterMetrics 可返回部分结果。unavailableFields 以 gpu_core_usage 这类下划线命名列出未取得的字段。使用 metadataOnly=true 时,返回的容量是状态快照,用量和分配量字段的默认零值表示未采集。
  • 启用 Dynamic MIG 容器监控时,先更新配套 HAMi Enterprise、NVIDIA 设备插件和 vGPUmonitor。在 HAMi Enterprise Chart 的 values 中设置 devicePlugin.monitor.migInstanceAccess: true 和 devicePlugin.monitor.disableHAMiCoreForWholeGPU: true,两项默认均为 false。确认原始显存和利用率指标带有 device_uuid="MIG-…"。运行时 MIG 算力规则还需要采集平台 Controller Manager 的 kantaloupe_runtime_mig_core_allocated_percent。
  • 使用 Prometheus Operator 时,确认 ServiceMonitor CRD 已安装,且 Prometheus 选择器匹配 monitoring.serviceMonitorLabels 与平台所在命名空间。其他采集方式可直接抓取各 API Server 副本的 /metrics,容器默认端口为 8000。已有手工采集时,检查目标是否重复。
  • 使用固定镜像标签的 values 时,将 apiserver.image.tag、controllerManager.image.tag 和 SQLite 部署中的 auth.image.tag 更新为 v0.16.2。使用镜像仓库副本时同步对应镜像。

Values 说明​

以下参数说明取自 Chart 0.22.2 发布包随附的 README,保留原文。默认配置以该版本的 values.yaml 为准。

展开参数表
KeyTypeDefaultDescription
apiserver.affinityobject{}apiserver affinity settings
apiserver.autoscaling.enabledboolfalseEnable CPU HPA; requires CRD auth storage and CPU requests
apiserver.autoscaling.maxReplicasint4Maximum APIServer replicas; size Kubernetes API capacity before increasing
apiserver.autoscaling.minReplicasint2Minimum APIServer replicas when HPA is enabled
apiserver.autoscaling.targetCPUUtilizationPercentageint70CPU target relative to container CPU requests
apiserver.clusterAPIBurstint100Burst to use while talking with cluster kube-apiserver
apiserver.clusterAPIQPSint50QPS to use while talking with cluster kube-apiserver
apiserver.image.pullPolicystring"IfNotPresent"kantaloupe image pull policy
apiserver.image.pullSecretslist[]Specify docker-registry secret names as an array
apiserver.image.registrystring"ghcr.io"kantaloupe image registry
apiserver.image.repositorystring"dynamia-ai/kantaloupe-apiserver"kantaloupe image repository
apiserver.image.tagstring"v0.16.2"kantaloupe image tag (immutable tags are recommended)
apiserver.labelsobject{}apiserver labels
apiserver.leaderElection.enabledbooltrueEnable apiserver leader election for auth singleton bootstrap when auth.storeBackend=crd
apiserver.leaderElection.leaseDurationstring"15s"Lease duration for apiserver leader election
apiserver.leaderElection.renewDeadlinestring"10s"Renew deadline for apiserver leader election
apiserver.leaderElection.resourceNamespacestring""Namespace of the Lease object; empty means use the release namespace
apiserver.leaderElection.retryPeriodstring"2s"Retry period for apiserver leader election
apiserver.livenessProbe.enabledbooltrueEnable livenessProbe on apiserver containers
apiserver.livenessProbe.failureThresholdint6
apiserver.livenessProbe.httpGet.pathstring"/healthz"
apiserver.livenessProbe.httpGet.portint8000
apiserver.livenessProbe.initialDelaySecondsint10
apiserver.livenessProbe.periodSecondsint10
apiserver.livenessProbe.timeoutSecondsint3
apiserver.logLevelint4apiserver glog verbosity level (0=minimal, 4=info, 5=debug)
apiserver.meteringGRPCAddressstring""Optional upstream metering gRPC service address. Leave empty to disable metering APIs
apiserver.nodeSelectorobject{}apiserver node labels for pod assignment
apiserver.pdb.enabledboolfalseCreate a PodDisruptionBudget for voluntary disruptions
apiserver.pdb.minAvailableint1Minimum available API replicas during voluntary disruptions
apiserver.podAnnotationsobject{}apiserver pod annotations
apiserver.podLabelsobject{}apiserver pod labels
apiserver.prometheusAddrstring""Prometheus server address for apiserver metrics querying
apiserver.readinessProbe.enabledbooltrueEnable business readiness and shutdown checks
apiserver.readinessProbe.failureThresholdint2
apiserver.readinessProbe.httpGet.pathstring"/readyz"
apiserver.readinessProbe.httpGet.portint8000
apiserver.readinessProbe.periodSecondsint5
apiserver.readinessProbe.timeoutSecondsint3
apiserver.replicaCountint1apiserver target replica count
apiserver.resourcesobject{}apiserver resource requests and limits
apiserver.rollingUpdate.maxSurgeint1Extra Pods allowed during CRD-backed updates; use 0 with required anti-affinity on fully occupied nodes
apiserver.rollingUpdate.maxUnavailableint0Pods allowed to be unavailable during CRD-backed updates; use 1 with maxSurge=0
apiserver.service.nodePortint31800
apiserver.service.portint8000
apiserver.service.typestring"ClusterIP"
apiserver.shutdownDelaySecondsint15Keep serving after readiness fails to allow endpoint and gateway updates to propagate before draining connections
apiserver.startupProbe.enabledbooltrueAllow slow cache synchronization before liveness checks begin
apiserver.startupProbe.failureThresholdint60
apiserver.startupProbe.httpGet.pathstring"/healthz"
apiserver.startupProbe.httpGet.portint8000
apiserver.startupProbe.periodSecondsint5
apiserver.startupProbe.timeoutSecondsint3
apiserver.terminationGracePeriodSecondsint60Pod shutdown budget; must be at least shutdownDelaySeconds + 40 for routing withdrawal, requests (30s), audit drain (5s), and cleanup
apiserver.tolerationsobject{}apiserver tolerations for pod assignment
apiserver.topologySpreadConstraintslist[]Scheduling-time topology constraints; these do not rebalance Pods after scale-down
auth.apiserverServiceAccountNamestring""ServiceAccount name of the kantaloupe-apiserver, used by the auth assignment admission webhook to validate the requester identity. Defaults to the release fullname.
auth.bootstrapAdminEmailstring"admin@email.com"Bootstrap PlatformAdmin email address
auth.bootstrapAdminFullNamestring"Platform Administrator"Bootstrap PlatformAdmin full name (display name)
auth.bootstrapAdminPasswordstring"admin12345"Bootstrap admin password (plain text, dev only)
auth.bootstrapAdminUsernamestring"bootstrap-platform-admin"Bootstrap PlatformAdmin username
auth.crdAuditWindowSizeint1000Max number of audit CRDs retained by the apiserver write path
auth.crdBurstint100Shared Kubernetes request burst for the CRD auth backend on each apiserver replica. Must be positive.
auth.crdQPSint50Shared Kubernetes request rate for the CRD auth backend on each apiserver replica. Must be positive.
auth.dbPathstring"/data/kantaloupe/auth.db"SQLite database path for auth data when auth.storeBackend=sqlite
auth.dryRunboolfalseAllow requests without enforcing auth; inject bootstrap admin when no valid token is provided
auth.enabledbooltrueEnable kantaloupe auth (JWT login, RBAC, audit)
auth.existingAuthSecretstring""Name of an existing K8s Secret with keys "jwt-secret" and "bootstrap-admin-password" (use instead of plain-text values for production)
auth.image.pullPolicystring"IfNotPresent"db-migrate image pull policy for sqlite backend
auth.image.registrystring"ghcr.io"db-migrate image registry for sqlite backend
auth.image.repositorystring"dynamia-ai/kantaloupe-db-migrate"db-migrate image repository for sqlite backend
auth.image.tagstring"v0.16.2"db-migrate image tag for sqlite backend
auth.jwtSecretstring"your-own-jwt-secret"JWT signing secret (plain text, dev only)
auth.persistence.enabledboolfalseEnable persistence using PVC for sqlite backend (PV is dynamically provisioned via cluster default StorageClass)
auth.persistence.existingClaimstring""Name of an existing PVC to use for sqlite backend (if set, a new PVC will not be created)
auth.persistence.sizestring"1Gi"PVC storage size for sqlite backend
auth.persistence.storageClassstring""PVC storage class for sqlite backend (empty = use cluster default StorageClass for dynamic PV provisioning)
auth.storeBackendstring"crd"Auth store backend. Supported values: crd, sqlite
cloudtty.enabledbooltrue
controlPlaneNamestring"control-plane"
controllerManager.affinityobject{}controllerManager affinity settings
controllerManager.concurrentWorkSyncsint5Reconcile workers per member-cluster controller on the elected leader; standby replicas do not add throughput
controllerManager.enablePromoteKantaloupeflowControllerboolfalseAutomatically create KantaloupeFlow CRs for existing GPU deployments in member clusters.
controllerManager.image.pullPolicystring"IfNotPresent"kantaloupe image pull policy
controllerManager.image.pullSecretslist[]Specify docker-registry secret names as an array
controllerManager.image.registrystring"ghcr.io"kantaloupe image registry
controllerManager.image.repositorystring"dynamia-ai/kantaloupe-controller-manager"kantaloupe image repository
controllerManager.image.tagstring"v0.16.2"kantaloupe image tag (immutable tags are recommended)
controllerManager.labelsobject{}controllerManager labels
controllerManager.livenessProbe.enabledboolfalseEnable livenessProbe on controllerManager containers
controllerManager.metricsPortint31001
controllerManager.nodeSelectorobject{}controllerManager node labels for pod assignment
controllerManager.podAnnotationsobject{}controllerManager pod annotations
controllerManager.podLabelsobject{}controllerManager pod labels
controllerManager.prometheusAddrstring""The Prometheus-compatible query endpoint for controller-manager. If empty, uses the default value from Go code.
controllerManager.readinessProbe.enabledboolfalseEnable readinessProbe on controllerManager containers
controllerManager.replicaCountint1controllerManager target replica count
controllerManager.resourcesobject{}controllerManager resource requests and limits
controllerManager.rollingUpdate.maxSurgeint1Extra Pods allowed during updates; use 0 with required anti-affinity on fully occupied nodes
controllerManager.rollingUpdate.maxUnavailableint0Pods allowed to be unavailable during updates; use 1 with maxSurge=0
controllerManager.terminationGracePeriodSecondsint45Time allowed for controller shutdown and leader failover
controllerManager.tolerationsobject{}controllerManager tolerations for pod assignment
controllerManager.webhook.certDirstring"/var/run/kantaloupe/webhook-certs"
controllerManager.webhook.certNamestring"tls.crt"
controllerManager.webhook.enabledbooltrue
controllerManager.webhook.keyNamestring"tls.key"
controllerManager.webhook.portint9443
controllerManager.webhook.servicePortint443
fullnameOverridestring"kantaloupe"String to fully override the fullname template
gateway.apiserverCorsobject{"allowCredentials":false,"allowHeaders":["authorization","content-type","accept","origin"],"allowMethods":["GET","POST","PUT","PATCH","DELETE","OPTIONS"],"allowOrigins":[],"enabled":false,"exposeHeaders":[],"maxAge":null}Optional CORS policy attached only to the apiserver HTTPRoute (/apis)
gateway.apiserverCors.allowCredentialsboolfalseWhether credentialed cross-origin requests are allowed
gateway.apiserverCors.allowHeaderslist["authorization","content-type","accept","origin"]Allowed request headers returned on CORS preflight responses
gateway.apiserverCors.allowMethodslist["GET","POST","PUT","PATCH","DELETE","OPTIONS"]Allowed methods returned on CORS preflight responses
gateway.apiserverCors.allowOriginslist[]Allowed browser origins for apiserver CORS; required when enabled
gateway.apiserverCors.enabledboolfalseEnable Envoy Gateway SecurityPolicy-based CORS on the apiserver route
gateway.apiserverCors.exposeHeaderslist[]Response headers exposed to browser JavaScript
gateway.apiserverCors.maxAgestringnilOptional browser preflight cache max age in seconds
gateway.apiserverHostnameslist[]Dedicated external hostnames for direct apiserver access, separate from gateway.hostnames (the UI/site domain). When non-empty, a dedicated HTTPRoute routes these hosts to the apiserver; they must be covered by the HTTPS listener's TLS certificate.
gateway.classNamestring"kantaloupe"GatewayClass name
gateway.enabledbooltrueEnable Gateway API resources
gateway.envoyobject{"proxy":{"image":{"pullSecrets":[],"registry":"","repository":"","tag":""}},"service":{"ports":{"http":{"nodePort":30080},"https":{"nodePort":30443}},"type":"NodePort"}}Envoy Gateway implementation details
gateway.envoy.proxy.image.pullSecretslist[]Image pull secrets for Envoy proxy pods
gateway.envoy.proxy.image.registrystring""Envoy proxy image registry
gateway.envoy.proxy.image.repositorystring""Envoy proxy image repository. When set without a tag, renders the EnvoyProxy imageRepository field.
gateway.envoy.proxy.image.tagstring""Envoy proxy image tag. When set, renders a complete EnvoyProxy image reference.
gateway.envoy.serviceobject{"ports":{"http":{"nodePort":30080},"https":{"nodePort":30443}},"type":"NodePort"}Envoy service configuration
gateway.envoy.service.ports.httpobject{"nodePort":30080}HTTP port configuration
gateway.envoy.service.ports.http.nodePortint30080HTTP NodePort
gateway.envoy.service.ports.httpsobject{"nodePort":30443}HTTPS port configuration
gateway.envoy.service.ports.https.nodePortint30443HTTPS NodePort
gateway.envoy.service.typestring"NodePort"Envoy service type (LoadBalancer or NodePort)
gateway.hostnameslist[]List of site hostnames (DNS names or wildcard names such as *.example.com, without scheme, port, or path). Applied to UI/API routes and passed to controller-manager and apiserver as GATEWAY_HOSTNAMES for control-plane workload, vLLM demo, and CloudShell HTTPRoutes. Member-cluster workload routes do not inherit the control-plane site hostnames. An empty list leaves site routes unrestricted by hostname. The first entry also supplies the control-plane cluster gateway address for generated access URLs; use a concrete hostname first. HTTPS certificates must cover these names.
gateway.ipAddressstring""Gateway IP address
gateway.listenerslist[{"name":"http","port":80,"protocol":"HTTP"}]Gateway listeners configuration
global.imagePullSecretslist[]Global Docker image pull secrets
global.imageRegistrystring""Global Docker image registry
hamiNamespacestring"hami-system"
hook.image.pullPolicystring"IfNotPresent"CRD hook image pull policy
hook.image.pullSecretslist[]Specify docker-registry secret names as an array
hook.image.registrystring"ghcr.io"CRD hook image registry
hook.image.repositorystring"cloudtty/cloudshell"CRD hook image repository
hook.image.tagstring"v0.8.9"CRD hook image tag (immutable tags are recommended)
installCRDsbooltruedefine flag whether to install CRD resources
monitoring.enabledbooltrue
monitoring.hamiServiceMonitor.enabledbooltrue
monitoring.serviceMonitorLabelsobject{}Labels added to ServiceMonitor and PrometheusRule resources for discovery by Prometheus-compatible operators. When empty, defaults to release: prometheus; providing any labels replaces that fallback. The built-in app, role, and control-plane labels cannot be overridden.
monitoring.vendorServiceMonitor.enableAMDServiceMonitorboolfalseEnable AMD GPU Operator exporter discovery and AMD recording rules in the control plane. Required for monitoring AMD devices in local or member clusters.
monitoring.vendorServiceMonitor.enableAlibabaPPUServicemonitorboolfalseEnable Alibaba PPU exporter discovery and Alibaba PPU recording rules in the control plane. Required for monitoring Alibaba PPU devices in local or member clusters.
monitoring.vendorServiceMonitor.enableAscendServicemonitorboolfalseEnable Ascend exporter discovery and Ascend recording rules in the control plane. Required for monitoring Ascend devices in local or member clusters.
monitoring.vendorServiceMonitor.enableEnflameServicemonitorboolfalseEnable Enflame GCU exporter discovery and Enflame recording rules in the control plane. Required for monitoring Enflame devices in local or member clusters.
monitoring.vendorServiceMonitor.enableHygonServicemonitorboolfalseEnable HCU exporter discovery and Hygon device recording rules in the control plane. Required for monitoring Hygon devices in local or member clusters. Discovers hcu-exporter in the monitoring namespace.
monitoring.vendorServiceMonitor.enableIluvatarServicemonitorboolfalseEnable Iluvatar ix-exporter and vgpu-manager discovery and Iluvatar recording rules in the control plane. Required for monitoring Iluvatar devices in local or member clusters.
monitoring.vendorServiceMonitor.enableMetaxServicemonitorboolfalseEnable MetaX exporter discovery and MetaX recording rules in the control plane. Required for monitoring MetaX devices in local or member clusters.
monitoring.vendorServiceMonitor.enableNvidiaServicemonitorbooltrueEnable NVIDIA exporter discovery and NVIDIA recording rules in the control plane. Required for monitoring NVIDIA devices in local or member clusters.
monitoring.vendorServiceMonitor.enabledbooltrueCreate vendor ServiceMonitor templates and recording rules for enabled vendors.
mpu.enabledboolfalse
mpu.image.pullPolicystring"IfNotPresent"MPU image pull policy
mpu.image.pullSecretslist[]
mpu.image.registrystring"ghcr.io"
mpu.image.repositorystring"dynamia-ai/mpu"
mpu.image.tagstring"dev-ubuntu24.04"
nameOverridestring""String to partially override the fullname template (will maintain the release name)
ui.affinityobject{}ui affinity settings
ui.apiBackendURLstring""Optional backend address for UI API requests. Leave empty to use same-origin requests
ui.forceChineseboolfalseForce UI to display Chinese language
ui.image.pullPolicystring"IfNotPresent"kantaloupe image pull policy
ui.image.pullSecretslist[]Specify docker-registry secret names as an array
ui.image.registrystring"ghcr.io"kantaloupe image registry
ui.image.repositorystring"dynamia-ai/kantaloupe-ui"kantaloupe image repository
ui.image.tagstring"v0.13.1"kantaloupe image tag (immutable tags are recommended)
ui.labelsobject{}ui labels
ui.livenessProbe.enabledboolfalseEnable livenessProbe on ui containers
ui.nodeSelectorobject{}ui node labels for pod assignment
ui.podAnnotationsobject{}ui pod annotations
ui.podLabelsobject{}ui pod labels
ui.readinessProbe.enabledboolfalseEnable readinessProbe on ui containers
ui.replicaCountint1ui target replica count
ui.resourcesobject{}ui resource requests and limits
ui.service.nodePortint31300
ui.service.portint80
ui.service.typestring"ClusterIP"
ui.tolerationsobject{}ui tolerations for pod assignment