HAMi - example manifests¶
Get the code to run this lab
The commands on this page come from the repository, not the website. Clone it and enter this lesson's folder: git clone https://github.com/ld-singh/ai-factory-ops-lab && cd ai-factory-ops-lab/portfolio-lab/01-k8s-gpu-platform/hami/examples. Browse this lesson on GitHub
ILLUSTRATIVE, not copy-paste. HAMi's resource names (
nvidia.com/gpumem,nvidia.com/gpucores, …), units, and defaults can change between releases. Confirm against the version you installed: https://project-hami.io/ and https://github.com/Project-HAMi/HAMiThese run in Lesson 1C: Sharing on a real GPU, on the real GPU from Lesson 6 - that's where the memory-cap enforcement is actually proven. Capture the in-pod
nvidia-smiand any allocation-failure output into../../../06-validation-reports/.
Files¶
| File | Demonstrates |
|---|---|
shared-pods.yaml |
Two pods each requesting a ~2 GiB slice of ONE physical GPU, co-resident |
Use¶
- Install HAMi on the Lesson 6 machine (confirm chart/values in the docs).
- Confirm the resource names in
shared-pods.yamlmatch your HAMi version. - Apply, then verify co-residency and the per-pod memory cap: