Skip to main content
AI Platform

HAMi AI Platform Air-Gapped Deployment Guide

This guide walks SREs and platform engineers through deploying HAMi AI Platform offline on Kubernetes, enabling accelerator nodes, activating a license, and verifying workloads.

This delivery package uses Zarf to import images, install Helm charts, and run upgrades in air-gapped or restricted networks, reducing manual image syncing and installation-order maintenance.

Zarf packages and deploys Kubernetes applications for air-gapped or partially connected environments. It bundles images, Helm charts, scripts, and deployment actions into one portable package.

Installation itself does not require a license. Complete the software deployment first, then apply for and import the license.

Without activation, vGPU partitioning and scheduling are unavailable, and functional verification will fail.

Air-Gapped Package Contents​

This guide uses the v0.1.0 Slim delivery. The archive contains the main .tar.zst package, the Zarf v0.86.0 CLI and init package for the selected architecture, package-values.yaml, configuration instructions, and operational scripts.

The archive includes NVIDIA GPU Operator, but it omits NVIDIA driver images and standalone sample workload packages. Preinstall a compatible driver on NVIDIA nodes. PPU components are available only in the amd64 archive.

AI Platform uses Kantaloupe Chart 0.23.0, backend images v0.17.0, and UI image v0.14.0. Some workload features use images available only for amd64, including init-image:v0.0.6 and mpu:dev-ubuntu24.04. Confirm image availability with the delivery team before using those features on arm64.

Prerequisite Checks​

CheckRequirementCommand
ClusterConfirm your kubeconfig targets the intended cluster. The default bundled Resource Pool Manager (RPM) and resource pool CRDs require Kubernetes 1.30 or later.kubectl version
NodesConfirm node architecture and container runtime. NVIDIA nodes need a compatible driver and NVIDIA Container Toolkit. Select the bundled GPU Operator if you need it to install the toolkit.kubectl get nodes -o wide
StoragePrepare persistent storage if you use the Zarf built-in registry. If you enable AI Platform Metering, also prepare persistent storage for PostgreSQL.kubectl get storageclass

Extract, Verify, and Install Zarf​

Contact your Dynamia representative or delivery team for the archive and matching .tar.gz.sha256 file for your architecture. Put both files in the same directory.

Delivery archiveSHA-256
hami-ai-platform-slim-v0.1.0-airgap-amd64.tar.gz51859ec9e8cda10e2a3a10cb4b2285dd805b601e153417441b4cb67876667eee
hami-ai-platform-slim-v0.1.0-airgap-arm64.tar.gzfba730b7f8dffcdb067d3215ca4d154a35bc0c963f8a7be31b8fb972a54af605

From the archive directory, run the following commands. For arm64 clusters, set ARCH to arm64. If the checksum check fails, obtain a matching set of delivery files before continuing. Run the remaining commands from the extracted directory with ARCH and PACKAGE still set.

ARCH=amd64
BUNDLE="hami-ai-platform-slim-v0.1.0-airgap-${ARCH}"
shasum -a 256 -c "${BUNDLE}.tar.gz.sha256" &&
tar -xzf "${BUNDLE}.tar.gz" &&
cd "$BUNDLE" &&
PACKAGE="./${BUNDLE}.tar.zst"

Install the matching Zarf CLI on your PATH and confirm that it reports v0.86.0:

chmod +x "./zarf-linux-${ARCH}"
sudo install -m 0755 "./zarf-linux-${ARCH}" /usr/local/bin/zarf
zarf version

Zarf bundles Helm. Use zarf tools helm to inspect Helm releases, values, and charts so you do not depend on a separate Helm installation in the target environment:

zarf tools helm version
zarf tools helm list -A

Initialize Zarf​

Before running these commands, confirm that kubectl and Zarf use the kubeconfig for the intended cluster.

Run zarf init only if the target cluster has not been initialized with Zarf. Use the labeled policy to limit image rewriting to explicitly labeled namespaces or workloads. On a cluster with an existing Zarf installation, inspect its registry, StorageClass, and Agent mutation policy instead of running zarf init again. Deploying the main package does not change an existing mutation policy.

Use the Zarf built-in registry:

zarf init "zarf-init-${ARCH}-v0.86.0.tar.zst" \
--agent-mutation-policy=labeled \
--confirm

To use an external registry, set REGISTRY_URL to the repository path for your architecture and set REGISTRY_USER and REGISTRY_PASSWORD before running this command:

zarf init "zarf-init-${ARCH}-v0.86.0.tar.zst" \
--agent-mutation-policy=labeled \
--registry-url="$REGISTRY_URL" \
--registry-push-username="$REGISTRY_USER" \
--registry-push-password="$REGISTRY_PASSWORD" \
--confirm

💡 Mixed-architecture clusters must use separate registry prefixes. AMD64 and ARM64 clusters may share the same Harbor instance, but they must not share the same Zarf registry project or repository prefix. Images in a Zarf air-gap package are packaged for the target architecture. Deploying AMD64 and ARM64 packages sequentially to the same image path does not merge identical tags into a multi-platform manifest. A later push may replace the earlier tag and cause Pods on the other architecture to pull an incompatible image after a restart or rescheduling.

During cluster initialization, use an architecture-specific --registry-url for each architecture. For example, use registry.example.com/zarf-amd64 for AMD64 and registry.example.com/zarf-arm64 for ARM64. Create the corresponding Harbor projects or repository prefixes in advance, and ensure that the account used by Zarf has push and pull permissions.

External registry parameter descriptions:

ParameterDescription
--registry-urlExternal image registry address
--registry-push-usernameUsername used to push images
--registry-push-passwordPassword used to push images

After initialization, zarf package deploy imports the images bundled in the package and uses an admission webhook to rewrite image references for managed workloads to the Zarf registry. With the labeled policy, only resources labeled zarf.dev/agent: mutate, or resources in a namespace with that label, are processed; a label on the resource takes precedence over the namespace label. Before deployment, confirm that the namespaces for the selected components have this label. For offline workloads created separately, confirm that the namespace is labeled first. Label changes do not affect existing Pods; recreate the Pods to trigger rewriting.

Use --insecure-skip-tls-verify for the relevant command only when the TLS certificate of the target registry genuinely cannot be verified and the man-in-the-middle risk has been assessed. In production, fix the certificate chain or configure a trusted CA for the Zarf Agent instead of treating skipped TLS verification as a default.

Deploy HAMi AI Platform​

Prepare custom values​

Start from the bundled package-values.yaml and place native Chart values under the matching top-level component key. The examples under hami/ and kantaloupe/ use native Chart format. Follow PACKAGE-VALUES.md to map them to component keys. Values passed at deployment override package values, which override Chart defaults. Choose which components to deploy with --components.

ComponentPurposeValues key
hamiCore components with bundled RPM and resource pool CRDs enabled by default (Chart 2.11.0-r2).hami
gpu-operatorOptional NVIDIA Container Toolkit and runtime configuration.gpu-operator
ascend-device-plugin / npu-exporterAscend device registration and monitoring. Select each as needed.ascend-device-plugin / npu-exporter
ppu-device-pluginPPU device plugin and monitoring for amd64.ppu-device-plugin
prometheus-crds / prometheusInstall monitoring CRDs before Prometheus. If reusing an existing installation, check the CRDs and scrape configuration.prometheus
envoy-gateway-crds / envoy-gatewayInstall Gateway API and Envoy Gateway CRDs before the controller.envoy-gateway
hami-ai-platformPlatform services and optional bundled Metering.hami-ai-platform
postgresqlSelect when enabling Metering with the bundled database.postgresql

Check that hami.scheduler.kubeScheduler.image matches the target Kubernetes version. If you override it, first make the matching image available in the registry used by Zarf.

When deploying hami on Kubernetes 1.18 through 1.29, set hami.resourcePoolManager.enabled and hami.resourcePoolCRDs.enabled to false.

ParameterDescriptionDefault
hami.scheduler.leaderElectWhether to enable leader election for hami-scheduler across multiple nodes. Strongly recommended to disable for single-node clusters.true
hami.scheduler.replicasAdjust the number of hami-scheduler instances1
hami.scheduler.kubeScheduler.image.registryImage registry for the kube-scheduler image used by hami-schedulerregistry.cn-hangzhou.aliyuncs.com
hami.scheduler.kubeScheduler.image.repositoryImage repository name for the kube-scheduler image used by hami-schedulergoogle_containers/kube-scheduler
hami.scheduler.kubeScheduler.image.tagVersion of the kube-scheduler image used by hami-scheduler; should match the target cluster""

Minimal package-values.yaml example. For a single-node cluster, set hami.scheduler.leaderElect to false:

hami:
scheduler:
leaderElect: false

For non-NVIDIA devices, enable the corresponding vendor under hami.devices. For Ascend, set both switches:

hami:
devices:
ascend:
enabled: true
hamiVnpuCore: true

This bundle includes only kube-scheduler:v1.37.0. By default, HAMi selects a kube-scheduler image tag matching the target Kubernetes version, and the Zarf Agent rewrites image references for Zarf-managed workloads in hami-system to the registry configured during zarf init. Changing only the registry or image tag in values does not add a missing image to the package. If the target Kubernetes version requires another image, contact technical support for a matching delivery package, confirm that the target offline registry can serve it, and override registry, repository, and tag under hami.scheduler.kubeScheduler.image when needed.

Configure platform access​

Put platform Chart settings under hami-ai-platform and Envoy Gateway controller settings under envoy-gateway. The platform defaults to HTTP NodePort 30080. To configure another port, a hostname, or HTTPS, use the service, listener, and certificate settings under hami-ai-platform.gateway in the bundled kantaloupe/README.md.

Keep hami-ai-platform.resourcePoolManager.enabled: false to give hami sole ownership of RPM. Before omitting any Gateway or Prometheus components, verify that the cluster already provides the required CRDs, GatewayClass, and monitoring endpoint.

Configure platform authentication​

Before deployment, configure a strong administrator password and a JWT signing key unique to this environment. The platform reads bootstrap-admin-password and jwt-secret from an authentication Secret in kantaloupe-system. This Secret is separate from hami-metering-database, which is used by optional Metering.

For a fresh installation, confirm that kubectl points to the intended cluster. Run the following command only if the kantaloupe-system namespace does not exist yet:

kubectl create namespace kantaloupe-system

Use a password manager to generate and store a unique password of 24 to 72 printable ASCII characters without spaces. Run the following command and enter that password at the prompt. The script generates 32 random bytes for the JWT signing key, writes both values to the Kubernetes Secret, and removes its temporary directory under /tmp on exit. Password input is not echoed.

(
set +x
set -euo pipefail
export LC_ALL=C
umask 077
secret_dir=$(mktemp -d /tmp/kantaloupe-auth.XXXXXX)
trap 'rm -f "$secret_dir/jwt-secret" "$secret_dir/bootstrap-admin-password"; rmdir "$secret_dir"' EXIT
openssl rand -hex 32 | tr -d '\n' > "$secret_dir/jwt-secret"

IFS= read -r -s -p 'Bootstrap administrator password: ' admin_password
printf '\n' >&2
if [[ ! "$admin_password" =~ ^[[:graph:]]{24,72}$ ]]; then
printf '%s\n' 'Use 24 to 72 printable ASCII characters without spaces.' >&2
exit 1
fi
printf '%s' "$admin_password" > "$secret_dir/bootstrap-admin-password"
unset admin_password

kubectl -n kantaloupe-system create secret generic kantaloupe-platform-auth --type=Opaque \
--from-file=jwt-secret="$secret_dir/jwt-secret" \
--from-file=bootstrap-admin-password="$secret_dir/bootstrap-admin-password"
)

If the target environment already has an operator-managed authentication Secret, keep its credentials and skip the Secret creation command. Confirm that it is in kantaloupe-system and has both keys with credentials unique to this environment. If the bootstrap account already exists, keep its username and authentication store. Changing the Secret does not reset an existing account password. If Helm currently manages the authentication Secret, plan how to preserve the JWT signing key and existing account before moving to an independently managed Secret.

Merge the following values into the existing hami-ai-platform key in package-values.yaml. For a fresh installation, replace the three account placeholders with the site administrator's details. For an existing deployment, keep its account settings. If you reuse a Secret with a different name, use that name in existingAuthSecret and in the check below. Enable authentication, keep dry-run mode off, and leave the two inline credential fields empty.

hami-ai-platform:
auth:
enabled: true
dryRun: false
existingAuthSecret: kantaloupe-platform-auth
bootstrapAdminUsername: "REPLACE_WITH_SITE_ADMIN_USERNAME"
bootstrapAdminFullName: "REPLACE_WITH_SITE_ADMIN_NAME"
bootstrapAdminEmail: "REPLACE_WITH_SITE_ADMIN_EMAIL"
jwtSecret: ""
bootstrapAdminPassword: ""

Before deploying, check that both Secret keys have a value. The command prints only the check result. Continue only after it prints ready:

kubectl -n kantaloupe-system get secret kantaloupe-platform-auth \
-o go-template='{{if .data}}{{if and (index .data "jwt-secret") (index .data "bootstrap-admin-password")}}ready{{else}}missing required keys{{end}}{{else}}missing required keys{{end}}{{"\n"}}'

Restrict access to the default HTTP NodePort 30080 to a controlled management network. For access over a shared network, configure HTTPS as described in the bundled kantaloupe/README.md before signing in.

Execute Deployment​

Start with the component list below and add the hardware components you need from this guide. With the labeled image rewrite policy, opt the hami-system namespace into rewriting before deployment.

Metering is disabled by default. To keep it disabled, leave hami-ai-platform.metering.enabled set to false, use the base component list below, and skip the postgresql component, the hami-metering-database Secret, and Metering verification. Complete the required platform authentication Secret above, then continue with the standard deployment. To enable Metering during the first installation, complete the optional steps in the next section before deploying.

COMPONENTS=hami,prometheus-crds,prometheus,envoy-gateway-crds,envoy-gateway,hami-ai-platform
kubectl create namespace hami-system --dry-run=client -o yaml | kubectl apply -f -
kubectl label namespace hami-system zarf.dev/agent=mutate --overwrite

Optional: Enable Metering​

For a new Metering installation, follow the bundled PACKAGE-VALUES.md to prepare PostgreSQL storage and the hami-metering-database Secret in both hami-metering and kantaloupe-system. Store each key in a file of the same name in a restricted directory. Use the same database password in both namespaces. URL-encode the password in dsn and use the raw password in flyway-password.

Prepare the files listed below in /secure/metering without trailing newlines. If the Secrets already exist, check their keys and consumers before proceeding.

FilenameValue
dsnpostgresql://postgres:<URL-encoded-password>@postgresql.hami-metering.svc.cluster.local:5432/postgres?sslmode=disable
flyway-urljdbc:postgresql://postgresql.hami-metering.svc.cluster.local:5432/postgres?sslmode=disable
flyway-userpostgres
flyway-passwordDatabase password without URL encoding
kubectl create namespace hami-metering --dry-run=client -o yaml | kubectl apply -f -
kubectl -n hami-metering create secret generic hami-metering-database \
--from-file=flyway-password=/secure/metering/flyway-password

kubectl create namespace kantaloupe-system --dry-run=client -o yaml | kubectl apply -f -
kubectl -n kantaloupe-system create secret generic hami-metering-database \
--from-file=dsn=/secure/metering/dsn \
--from-file=flyway-url=/secure/metering/flyway-url \
--from-file=flyway-user=/secure/metering/flyway-user \
--from-file=flyway-password=/secure/metering/flyway-password

PostgreSQL requests a 5 GiB persistent volume by default. Set postgresql.primary.persistence.storageClass if needed, or use postgresql.primary.persistence.existingClaim for a PVC in hami-metering. Enable bundled Metering with the following values:

hami-ai-platform:
metering:
enabled: true

Include postgresql before hami-ai-platform in COMPONENTS while keeping any hardware components you selected. Zarf waits for the PostgreSQL StatefulSet to become ready before deploying the platform and bundled Metering:

COMPONENTS="${COMPONENTS/,hami-ai-platform/,postgresql,hami-ai-platform}"

Inspect values and deploy​

Inspect the merged values and rendered manifests. Confirm that the namespaces, images, and selected components match your intended deployment before running it.

zarf package inspect values-files "$PACKAGE" --components="$COMPONENTS" --values=package-values.yaml
zarf package inspect manifests "$PACKAGE" --components="$COMPONENTS" --values=package-values.yaml
zarf package deploy "$PACKAGE" --components="$COMPONENTS" --values=package-values.yaml --confirm
zarf package list
kubectl -n hami-system rollout status deployment/hami-scheduler
kubectl -n kantaloupe-system get deployments,pods

If a component takes a long time to complete, first identify whether it is importing images, running Helm hooks, or waiting for workload health checks. Diagnose the issue with zarf tools helm, Pod events, and logs. For incorrect values, fix the corresponding configuration in package-values.yaml, inspect it again, and rerun the same deployment command. If the operation exceeds the default 15 minutes, determine the cause before adjusting --timeout.

After an interrupted deployment, resolve the issue and resume with the same zarf package deploy ... --components=... --values=... command. Zarf will skip re-importing images when the digest has not changed; it will perform a Helm upgrade when Helm charts or values have changed.

If the target resources are already managed by another Helm release and you have confirmed that they should be transferred to the current Zarf package, review the resource scope and then use --take-ownership. Use --force-conflicts only for Server-Side Apply field ownership conflicts. It overwrites fields managed by other field managers, so use it only after confirming that this deployment may take over those fields; do not use it as a general retry option.

Optional: NVIDIA GPU Operator​

If GPU nodes already have a compatible driver, NVIDIA Container Toolkit, and container runtime, skip gpu-operator. If you select gpu-operator, keep using the driver already installed on the nodes and leave the Operator's device plugin and CDI disabled so HAMi registers the devices.

For a first deployment, add gpu-operator to COMPONENTS. To add it to a cluster that already runs HAMi, run the following command:

zarf package deploy "$PACKAGE" --components=gpu-operator --values=package-values.yaml --confirm

Enable GPU Nodes​

The HAMi NVIDIA device plugin starts only on nodes labeled gpu=on. Apply this label to each NVIDIA node that HAMi should manage. Ascend components use their own nodeSelector instead of gpu=on.

kubectl label nodes <node-name> gpu=on

Optional: Ascend Components​

Select ascend-device-plugin and npu-exporter as needed on amd64 or arm64. Ascend Device Plugin Chart 0.4.0 uses image v1.5.0 and the hami-scheduler-device ConfigMap in hami-system. NPU Exporter runs in the npu-exporter namespace.

For Ascend devices, enable both settings under hami and match the partitioning mode to the target nodes:

hami:
devices:
ascend:
enabled: true
hamiVnpuCore: true

Prepare the Nodes

NPU Exporter supports ordinary Ascend compute nodes using containerd. Install the driver, firmware, and runtime on each target node first. Atlas 200I SoC A1 core boards require separate upstream manifests and startup scripts and are outside this component's scope.

The default selector reuses the plugin's ascend: "on" node label, so no separate Exporter label is needed. The default containerd directory is /run/containerd. Override the Exporter settings only if the actual node labels or runtime path differ.

The installer creates the Exporter log directory and sets ownership to root:root and mode 0750, so no manual directory setup on each node is needed. Installation uses the standard Zarf and Helm readiness checks. Follow the Ascend verification steps below to check metric collection and monitoring integration.

Configure and Deploy

The default node labels and containerd path need no extra configuration. Keep HAMi settings aligned with the target NPU model and partitioning mode. For a non-default containerd path, configure npu-exporter.hostPaths.containerd with the path used by the target nodes.

To add these components to a cluster where HAMi is already installed, select them as shown below. For a first installation, add them to the component combination for your edition. Also select prometheus-crds,prometheus when using the bundled monitoring stack. Use the main package for the selected version and architecture.

zarf package deploy "$PACKAGE" \
--components=ascend-device-plugin,npu-exporter \
--values=package-values.yaml --confirm

If you do not need overrides, omit --values. If the device plugin is already installed, select only npu-exporter. To use a different image, rebuild the package with that image. An offline deployment cannot pull images that were not packaged.

Connect Monitoring

Clusters managed by Kantaloupe: The Exporter does not create a ServiceMonitor by default. Kantaloupe manages local and member-cluster scraping. The Service in npu-exporter uses the labels and port expected by the platform template, so no custom scrape manifest is needed.

Whenever a data-plane cluster introduces a new device vendor, enable that vendor's monitor switch in the control-plane Kantaloupe values and run Helm upgrade. Use the following configuration for Ascend, even when the control plane has no Ascend devices: it also enables the recording rules needed for member-cluster metrics. For Zarf, nest the configuration under hami-ai-platform; for a direct Helm upgrade, omit that outer key and preserve the existing configuration.

hami-ai-platform:
monitoring:
enabled: true
vendorServiceMonitor:
enabled: true
enableAscendServicemonitor: true

Standalone monitoring without Kantaloupe: Enable the Exporter's optional ServiceMonitor. When using the bundled stack, install prometheus-crds,prometheus first. After deployment, confirm the targets and metrics in Prometheus, and make sure only one monitor scrapes each Exporter.

npu-exporter:
serviceMonitor:
enabled: true

Verify the Deployment

kubectl -n hami-system get daemonsets
kubectl -n npu-exporter get daemonset npu-exporter
kubectl -n npu-exporter rollout status daemonset/npu-exporter --timeout=180s
kubectl -n npu-exporter get pods -o wide
kubectl -n npu-exporter get endpointslice -l kubernetes.io/service-name=npu-exporter

Check the Exporter DaemonSet's DESIRED and READY counts: both should equal the expected number of Ascend nodes and be greater than zero. Query up{job="npu-exporter",namespace="npu-exporter"} and npu_chip_info_utilization in Prometheus to confirm scraping and metrics for each node. Zero utilization is valid for idle devices. Also verify device-plugin registration and run a workload requesting the expected Ascend resources to confirm allocation and device access.

For Kantaloupe, query the member cluster's raw npu_chip_info_* metrics and normalized kantaloupe_gpu_core_used{vendor="ascend",cluster="<member-cluster-name>"} metrics on the control plane. Ready Exporter Pods alone do not confirm that federation and platform monitoring are connected. Prometheus configuration updates and the first scrape take some time after a ServiceMonitor is created. If metrics are missing, check the driver and DCMI. For scrape failures, check target discovery, configuration reload, ServiceMonitor labels, duplicate scraping, and network policies.

Maintenance and Non-default Environments

For Exporter troubleshooting, check that the node has a usable containerd.sock in the configured containerd directory. The component mounts the directory instead of an individual socket file.

The NetworkPolicy allows TCP 8082 from Pods labeled app.kubernetes.io/name: prometheus across namespaces and denies outbound traffic by default; enforcement depends on the CNI. For other monitoring labels, override npu-exporter.networkPolicy.prometheusPodSelector. Configure standalone ServiceMonitor selector labels through npu-exporter.serviceMonitor.labels.

The Exporter runs as root in a privileged container and accesses host driver libraries, DCMI libraries, and the runtime socket. A read-only socket mount does not restrict runtime API calls. Keep DCMI libraries and their parent directories owned by root and not writable by group or others. Before upgrading the driver, stop workloads and then stop NPU Exporter.

Default host pathPurposeMount access
/usr/local/Ascend/driverDriver librariesRead-only
/usr/local/dcmiDCMI librariesRead-only
/sysDevice informationRead-only
/run/containerdContainerd and CRI socket accessRead-only directory mount
/etc/localtimeNode timezoneRead-only
/var/log/mindx-dl/npu-exporterExporter logsWritable
test -d /usr/local/Ascend/driver
test -d /usr/local/dcmi
test -S /run/containerd/containerd.sock

Removing the component does not remove host logs. The container root filesystem is read-only, /tmp uses emptyDir, and the ServiceAccount token is not mounted. These settings do not remove the privileged container's host access.

Optional: PPU Components​

Select ppu-device-plugin only with the amd64 delivery. PPU Device Plugin Chart 0.0.5 uses image v1.0.6 and deploys the plugin and monitor in hami-system. If equivalent components are already installed, reuse them instead of deploying duplicates.

Node Preparation and Configuration

Install the PPU driver and runtime appropriate for the node, confirm that the node can access its PPU devices, then add the node label:

kubectl label nodes <PPU_NODE> alibabappu=on --overwrite

Enable Alibaba PPU in HAMi and keep the plugin and monitoring enabled. Add the following to package-values.yaml:

hami:
devices:
alibaba:
enabled: true
ppu-device-plugin:
nodeSelector:
alibabappu: "on"
plugin:
enabled: true
monitor:
enabled: true
service:
enabled: true

The PPU Chart creates a separate ConfigMap by default. Before deployment, confirm that the resource names and partitioning configuration in ppu-device-plugin.config.data.alibaba match the HAMi scheduler configuration. Do not copy the Ascend ConfigMap configuration directly to PPU. Default resource names include alibaba.com/ppu, alibaba.com/ppu-memory, and alibaba.com/gpu-core. RPM does not support PPU in this version.

Deployment

For a first installation, enable PPU in package-values.yaml and add ppu-device-plugin to the deployment component list. If HAMi already runs with Alibaba PPU enabled, deploy the plugin on its own:

zarf package deploy "$PACKAGE" --components=ppu-device-plugin --values=package-values.yaml --confirm

Monitoring Integration

Clusters managed by Kantaloupe: Enable Alibaba PPU monitoring on the control plane, including when only member clusters have PPU devices. Merge the following into the existing hami-ai-platform configuration and redeploy the hami-ai-platform component. For a direct Helm upgrade, omit that top-level key and preserve the existing configuration.

hami-ai-platform:
monitoring:
enabled: true
vendorServiceMonitor:
enabled: true
enableAlibabaPPUServicemonitor: true

By default, the platform discovers Services in hami-system labeled app=ppu-vgpu-monitor and component=vgpu-monitor and scrapes their metrics port. The default Service is ppu-device-plugin-monitor, with port 31992 targeting container port 9394.

Standalone monitoring without Kantaloupe: Configure a Prometheus ServiceMonitor or VictoriaMetrics VMServiceScrape for the same Service to scrape /metrics on the metrics port. Monitoring object labels must match the monitoring system's selector. The PPU Chart has no ServiceMonitor switch. Do not create two scrape configurations for the same Service.

Verification

kubectl get nodes -l alibabappu=on
kubectl -n hami-system get daemonsets ppu-device-plugin ppu-device-plugin-monitor
kubectl -n hami-system rollout status daemonset/ppu-device-plugin --timeout=180s
kubectl -n hami-system rollout status daemonset/ppu-device-plugin-monitor --timeout=180s
kubectl -n hami-system get pods -o wide
kubectl -n hami-system get endpointslice -l kubernetes.io/service-name=ppu-device-plugin-monitor
kubectl describe node <PPU_NODE>

For both DaemonSets, DESIRED and READY should equal the expected PPU node count and be greater than zero. After license activation and confirmation that nodes have registered PPU resources, run a workload requesting PPU resources to verify allocation and device access.

Query up{job="ppu-vgpu-monitor",namespace="hami-system"} and hami_host_gpu_utilization_ratio{zone="vGPU"} in Prometheus to check scraping and raw metrics. For Kantaloupe, also check the member cluster's raw metrics and kantaloupe_gpu_core_used{vendor="alibaba-ppu",cluster="<member-cluster-name>"} on the control plane. Zero utilization can indicate an idle device. Ready Pods or nonempty platform metrics alone do not confirm real device data collection. Verify the raw metrics and scrape targets directly.

The platform's current PPU temperature and power rules use placeholder values, which do not represent real temperature or power consumption. If raw metrics are missing, check the node driver, plugin, and monitor logs. For scrape failures, check Service labels, ports, EndpointSlices, ServiceMonitor selectors, duplicate scraping, and network policies.

Resource Pool Management (RPM)​

On Kubernetes 1.30 or later, the default hami configuration installs bundled RPM and its resource pool CRDs. Use one RPM admission webhook per cluster. With bundled RPM, omit the standalone rpm component and keep the AI Platform RPM subchart disabled.

Set device switches under hami.resourcePoolManager.devices to match hami.devices. RPM logs admission decisions in dry-run mode by default. Check the license Secret and resource pool bindings for the target namespace before disabling dry-run mode as described in PACKAGE-VALUES.md.

kubectl -n hami-system get configmap hami-hami-resource-pool-manager-config
kubectl api-resources --api-group=resource.hami.io

Check resource pools, bindings, and admission results for actual workloads. For a cluster with standalone RPM or resource pool CRDs, review ownership using the migration guide before deploying.

Monitoring Integration​

Monitoring is optional. If the cluster already has compatible Prometheus or VictoriaMetrics monitoring, connect it using the selectors below. To install the bundled kube-prometheus-stack, select both monitoring components:

zarf package deploy "$PACKAGE" \
--components=prometheus-crds,prometheus \
--values=package-values.yaml \
--confirm

Confirm that the metrics system can scrape HAMi, DCGM-Exporter, NPU Exporter, or PPU monitor metrics for the selected hardware. The package defaults to hami.legacyMetrics=false; the table below uses current metric names. Before checking that metrics are nonempty, confirm that the corresponding scrape targets report up=1.

For Prometheus, ServiceMonitor.metadata.labels must match Prometheus.spec.serviceMonitorSelector; otherwise, Prometheus will not scrape these metrics.

For VictoriaMetrics Operator, VMAgent.spec.serviceScrapeSelector selects VMServiceScrape.metadata.labels. Also check serviceScrapeNamespaceSelector. When converting from ServiceMonitor, confirm that the corresponding VMServiceScrape has been created.

Verify Metrics Collection​

ExporterQuery MetricExpected Result
dcgm-exporterDCGM_FI_DEV_GPU_UTILNonempty result
hami-exporterhami_host_gpu_utilization_ratioNonempty result
hami-device-plugin-exporterhami_gpu_core_allocated_ratioNonempty result

In addition to raw Exporter metrics, query kantaloupe_gpu_temp to verify Kantaloupe service metrics for NVIDIA and other applicable devices. For PPU, check raw utilization and memory metrics and the corresponding kantaloupe_gpu_core_used and kantaloupe_gpu_mem_used instead. The platform's current PPU temperature and power rules use placeholder values; do not use kantaloupe_gpu_temp or kantaloupe_gpu_power to assess real temperature, power consumption, or successful monitoring integration.

License Acquisition​

Start license activation once the HAMi core and required platform services are ready. Optional GPU Operator, Ascend, and monitoring components need not be installed first.

Use either method below to obtain the license request information. If the HAMi AI Platform site is not yet accessible, use the collection script.

Use HAMi AI Platform​

  1. Sign in to HAMi AI Platform with a platform administrator account.

  2. Open License and System Information.

  3. Follow the instructions on the page to obtain the license request information.

Run the Collection Script​

The collection script requires kubectl and jq:

# Download and run the script
curl -fsSL https://public.hami.run/collect-hami-license-info.sh | bash

# Run a local copy provided with the delivery materials
bash collect-hami-license-info.sh

The command outputs JSON in the following format:

{
"esn": "96565d61-986a-4918-aafb-448ff6e3746b",
"deviceInstances": [
{
"uuid": "GPU-ceee905d-48ac-93de-a81b-17c00e1e5e02",
"deviceType": "NVIDIA A10"
}
]
}

Send the license request information to Dynamia.ai sales, pre-sales, or delivery personnel, then complete activation as instructed.

Post-Activation Verification​

kubectl -n hami-system get pods
kubectl describe node <gpu-node>
kubectl get events --field-selector involvedObject.name=hami-license -n hami-system
kubectl get nodes -o custom-columns='NODE:.metadata.name,LICENSE:.metadata.annotations.hami\.io/nvidia-license'

A LicenseValid event indicates that license validation succeeded. Confirm that the selected component Pods are Running or Completed and that accelerator resources are registered on the managed nodes.

HAMi AI Platform Verification​

kubectl -n kantaloupe-system get pods,svc
kubectl get gatewayclass kantaloupe
kubectl -n kantaloupe-system get gateway kantaloupe

Confirm that the GatewayClass is Accepted, the Gateway is Programmed, and the platform Pods are ready. Open the configured endpoint (for the default NodePort, open HTTP port 30080 on a reachable node), sign in, and check cluster and node status.

Optional: Verify HAMi Metering​

If you enabled Metering, confirm that PostgreSQL, the Metering API, and the collector are ready and that the Flyway migration succeeded. In the platform UI, confirm that Metering is enabled for the target cluster, then run a GPU workload to verify that usage data appears in the collection window:

kubectl -n hami-metering rollout status statefulset/postgresql
kubectl -n kantaloupe-system rollout status deployment/kantaloupe-metering-api deployment/kantaloupe-metering-collector

Verify Workloads​

After enabling the intended nodes and activating the license, run a test workload using an image imported into the Zarf registry or another internal registry the cluster can reach. Request the resource for the device under test. With the labeled rewrite policy, first check the workload namespace's mutation label.

kubectl -n <namespace> get pod <pod-name> -o wide
kubectl -n <namespace> describe pod <pod-name>
kubectl describe node <node-name>

Confirm the Pod lands on the intended node, review its events for allocation or pull failures, and check device access from the container using a device utility or application logs.

Troubleshooting​

For deployment failures, inspect Pods, events, and Zarf package status. Use zarf tools helm to inspect Helm releases. Diagnostic files may contain cluster configuration and logs; review them for sensitive information before sharing and do not include Secrets.

kubectl get pods -A | grep -E 'hami|gpu-operator|device-plugin|npu-exporter|prometheus|kantaloupe'
kubectl get events -A --sort-by=.lastTimestamp | tail -50
zarf package list

Run collect-cluster-info.sh from the extracted directory to collect Kubernetes and device inventory. If jq is unavailable, install it with tools. When using sudo, explicitly pass the target kubeconfig so the tools select the intended cluster.

KUBECONFIG_PATH="${KUBECONFIG:-$HOME/.kube/config}"
ROOT_PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
sudo env PATH="$ROOT_PATH" sh -c 'command -v kubectl >/dev/null'
sudo env KUBECONFIG="$KUBECONFIG_PATH" PATH="$ROOT_PATH" zarf package deploy "$PACKAGE" --components=tools --confirm
sudo env KUBECONFIG="$KUBECONFIG_PATH" PATH="$ROOT_PATH" "$PWD/collect-cluster-info.sh" > cluster-info.json
sudo /usr/local/bin/jq empty cluster-info.json

Common Issues​

SymptomCheck
Image pull failsCheck Pod events, registry access, and whether the image is in the package for this architecture. With the labeled policy, verify zarf.dev/agent: mutate. Recreate affected Pods after applying the label.
NVIDIA plugin is missing or restartingCheck the gpu=on node label, driver, and runtime. Confirm the GPU Operator device plugin and CDI are disabled.
Persistent volume does not bindCheck PVC events and the StorageClass. Confirm that storage can be provisioned before initializing Zarf or enabling Metering.
Deployment times outUse Pod events, container logs, and zarf tools helm list -A to identify image import, Helm hook, or workload readiness issues.

Limitations of Installing Components with Zarf​

Control the Image Rewrite Scope Explicitly with Labels​

We recommend initializing Zarf with zarf init --agent-mutation-policy=labeled. This policy rewrites only resources labeled zarf.dev/agent: mutate, or resources in a namespace with that label. An individual workload that must retain its original image reference can be labeled zarf.dev/agent: ignore, and a resource label takes precedence over the namespace label. This allows image rewriting to be controlled per resource, even within the same cluster or namespace, without having the Agent manage every application namespace by default. Only images included in the Zarf package can be rewritten and pulled in an offline environment. After changing labels, recreate existing Pods because they are not updated automatically.

Manage Each Set of Resources Through a Single Delivery Pipeline​

Zarf manages the chart releases in a package through Helm. Managing the same Kubernetes resources in parallel through another native Helm workflow can still cause release ownership, field ownership, and upgrade ordering conflicts. Continue routine upgrades with a newer Zarf package. If existing resources must be transferred to Zarf, review the release and resource scope before using --take-ownership. Use --force-conflicts only for Server-Side Apply field conflicts that you have confirmed may be overwritten; it should not be used as a routine installation option.

Support​

  • Email: info@dynamia.ai

  • Sales / technical support: 400-026-7800

  • Customers with active commercial agreements should submit support requests through their dedicated support channel.