-
Notifications
You must be signed in to change notification settings - Fork 85
docs(get-started): simplify quick start and online installation guides #712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,41 +3,41 @@ sidebar_label: Online Installation from Helm | |
| title: Online Installation from Helm (Recommended) | ||
| --- | ||
|
|
||
| The recommended way to deploy HAMi is via Helm. | ||
| The recommended way to deploy HAMi in a Kubernetes cluster is via the official Helm chart. | ||
|
|
||
| ## Add HAMi repo | ||
| ## 1. Add HAMi Helm Repository {#add-hami-repo} | ||
|
|
||
| You can add HAMi chart repository using the following command: | ||
| Add the HAMi chart repository and update local repository cache: | ||
|
|
||
| ```bash | ||
| helm repo add hami-charts https://project-hami.github.io/HAMi/ | ||
| helm repo update | ||
| ``` | ||
|
|
||
| ## Get your Kubernetes version | ||
| ## 2. Deploy HAMi {#deploy-hami} | ||
|
|
||
| A Kubernetes version is required for proper installation. You can retrieve your Kubernetes server version with: | ||
| Ensure `scheduler.kubeScheduler.imageTag` matches your Kubernetes server version (e.g. `v1.29.0`). Deploy HAMi into the `kube-system` namespace using Helm: | ||
|
|
||
| ```bash | ||
| kubectl version | ||
| helm install hami hami-charts/hami --set scheduler.kubeScheduler.imageTag=v1.29.0 -n kube-system | ||
| ``` | ||
|
|
||
| ## Installation | ||
| ### Customizing Helm Configurations | ||
|
|
||
| Ensure the `scheduler.kubeScheduler.image.tag` matches your Kubernetes server version. For instance, if your cluster server is v1.29.0, use the following command to deploy: | ||
| You can customize your deployment by passing parameters with `--set` or providing a custom `values.yaml` file: | ||
|
|
||
| ```bash | ||
| helm install hami hami-charts/hami --set scheduler.kubeScheduler.image.tag=v1.29.0 -n kube-system | ||
| helm install hami hami-charts/hami --set scheduler.kubeScheduler.imageTag=v1.29.0 -n kube-system -f custom-values.yaml | ||
| ``` | ||
|
|
||
| Customize your installation by editing the [configurations](../userguide/configure.md). | ||
| For a detailed breakdown of available chart options and configuration keys, see the [Configuration Guide](../userguide/configure.md). | ||
|
|
||
| ## Verify your installation | ||
| ## 3. Verify Installation {#verify-installation} | ||
|
|
||
| You can verify your installation using the following command: | ||
| Verify that the HAMi components (`hami-device-plugin` and `hami-scheduler`) are running correctly: | ||
|
|
||
| ```bash | ||
| kubectl get pods -n kube-system | ||
| kubectl get pods -n kube-system | grep hami | ||
| ``` | ||
|
|
||
| If both hami-device-plugin and hami-scheduler pods are in the Running state, your installation is successful. | ||
| If both `hami-device-plugin` and `hami-scheduler` pods are in the `Running` state, your installation is successful. | ||
|
Comment on lines
+35
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
files=(
"docs/installation/online-installation.md"
"i18n/zh/docusaurus-plugin-content-docs/current/installation/online-installation.md"
"i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/installation/online-installation.md"
"versioned_docs/version-v2.9.0/installation/online-installation.md"
)
for file in "${files[@]}"; do
rg -n 'gpu=on|label nodes|标记节点' "$file" || {
echo "Missing GPU-node labeling instructions: $file"
exit 1
}
doneRepository: Project-HAMi/website Length of output: 239 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== target files =="
for f in \
docs/installation/online-installation.md \
i18n/zh/docusaurus-plugin-content-docs/current/installation/online-installation.md \
i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/installation/online-installation.md \
versioned_docs/version-v2.9.0/installation/online-installation.md
do
echo "--- $f"
wc -l "$f"
sed -n '1,120p' "$f"
done
echo "== search for selector/label references in docs =="
rg -n "gpu=on|matchLabels|nodeSelector|label nodes|节点标签|GPU 节点|device-plugin|hami-device-plugin" docs i18n versioned_docs -S || trueRepository: Project-HAMi/website Length of output: 50377 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== target lines =="
for f in \
docs/installation/online-installation.md \
i18n/zh/docusaurus-plugin-content-docs/current/installation/online-installation.md \
i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/installation/online-installation.md \
versioned_docs/version-v2.9.0/installation/online-installation.md
do
echo "--- $f"
wc -l "$f"
sed -n '1,90p' "$f"
done
echo "== prerequisites labeling sections =="
for f in \
docs/installation/prerequisites.md \
docs/installation/offline-installation.md \
i18n/zh/docusaurus-plugin-content-docs/current/installation/prerequisites.md \
i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/installation/prerequisites.md \
versioned_docs/version-v2.9.0/installation/prerequisites.md
do
echo "--- $f"
if [ -f "$f" ]; then
rg -n "gpu=on|label nodes|标记节点|Prepare|准备" "$f" -C 3 || true
fi
done
echo "== hami-device-plugin manifest snippets in docs = "
rg -n "app\.kubernetes\.io/component: hami-device-plugin|nodeSelector:|gpu: on|gpu=\"on\"|gpu:=on" docs/versioned_docs i18n/zh/docusaurus-plugin-content-docs -S --glob '*.md' --max-count 50 || trueRepository: Project-HAMi/website Length of output: 9119 Add the GPU-node labeling prerequisite to the online installation pages.
📍 Affects 4 files
🤖 Prompt for AI AgentsSource: MCP tools |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Tell users to save the manifest as
gpu-pod.yaml.The page shows an inline manifest, but the next command applies
gpu-pod.yaml. A user who follows the steps literally does not create that file.docs/get-started/deploy-with-helm.md#L51-L53: add “Save the following manifest asgpu-pod.yaml:”.i18n/zh/docusaurus-plugin-content-docs/current/get-started/deploy-with-helm.md#L51-L53: add “将以下清单保存为gpu-pod.yaml:”.i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/get-started/deploy-with-helm.md#L51-L53: add the same Chinese instruction.versioned_docs/version-v2.9.0/get-started/deploy-with-helm.md#L51-L53: add the same English instruction.📍 Affects 4 files
docs/get-started/deploy-with-helm.md#L51-L53(this comment)i18n/zh/docusaurus-plugin-content-docs/current/get-started/deploy-with-helm.md#L51-L53i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/get-started/deploy-with-helm.md#L51-L53versioned_docs/version-v2.9.0/get-started/deploy-with-helm.md#L51-L53🤖 Prompt for AI Agents