Environment Variables#
Environment variables used by the AIM Engine operator and artifact downloader.
Operator Environment Variables#
Variable |
Description |
|---|---|
|
Namespace where the operator is deployed. Set automatically by the deployment. |
|
Operator pod name. Used for discovery lock identity. |
Artifact Downloader Variables#
These are set automatically by the operator on download jobs.
Download Configuration#
Variable |
Default |
Description |
|---|---|---|
|
|
Comma-separated protocol sequence for Hugging Face downloads. Tried in order; falls back on failure. |
|
|
PVC mount path in the download container. |
|
|
Download target directory. |
|
(computed) |
Expected model size in bytes. |
|
(from resource) |
Name of the AIMArtifact resource. |
|
(from resource) |
Namespace of the AIMArtifact resource. |
|
|
Seconds to wait before considering a download stalled. |
|
|
Temporary directory for downloads. |
|
|
Hugging Face cache directory. |
Download Protocols#
The AIM_DOWNLOADER_PROTOCOL variable accepts a comma-separated list of:
Protocol |
Description |
|---|---|
|
XetHub protocol — fastest for large models |
|
Hugging Face Transfer — optimized multi-part download |
|
Standard HTTP — slowest but most compatible |
The downloader tries each protocol in order. On failure, it cleans up .incomplete files and moves to the next protocol.
Inference Container Variables#
These are set on inference containers by the operator:
Variable |
Source |
Description |
|---|---|---|
|
Constant |
Base path for cached model artifacts. |
|
Constant |
Always |
|
Template |
AIM product family identifier (e.g., |
|
Template |
Active profile identifier. For standard templates, set from the discovered profile. For custom profile templates, set to |
|
Template |
Optimization metric ( |
|
Template |
Model precision (e.g., |
|
Template |
Model identifier for custom models (base container deployments). Mutually exclusive with |
|
Merged |
JSON-encoded engine arguments, merged from service, template, runtime config, and profile. Can override individual keys from a custom profile’s |
Environment Variable Merge Order#
When the same variable is set at multiple levels, the most specific wins:
AIMService.spec.env(highest priority)AIMServiceTemplate.spec.env(plus template-derived vars such as metric/precision/profile)Merged runtime config env (
AIMRuntimeConfig.spec.envoverridingAIMClusterRuntimeConfig.spec.env)Operator defaults (lowest priority)
Next Steps#
Model Caching Guide — Download protocol configuration
Private Registries — Authentication environment variables
CLI and Operator Flags — Operator binary flags