From f2b70afde094e81bc770d11a19e1d4f553cee43f Mon Sep 17 00:00:00 2001 From: Kay Yan Date: Wed, 9 Apr 2025 11:46:11 +0800 Subject: [PATCH] docs: remove the use of Downward API for LWS_WORKER_INDEX (#5110) Signed-off-by: Kay Yan --- docs/references/deploy_on_k8s.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/docs/references/deploy_on_k8s.md b/docs/references/deploy_on_k8s.md index 6fb1afb1f..cfc099f56 100644 --- a/docs/references/deploy_on_k8s.md +++ b/docs/references/deploy_on_k8s.md @@ -14,7 +14,7 @@ Here we take the deployment of DeepSeek-R1 as an example. 1. At least two Kubernetes nodes, each with two H20 systems and eight GPUs, are required. -2. Make sure your K8S cluster has LWS correctly installed. If it hasn't been set up yet, please follow the [installation instructions](https://github.com/kubernetes-sigs/lws/blob/main/site/content/en/docs/installation/_index.md). +2. Make sure your K8S cluster has LWS correctly installed. If it hasn't been set up yet, please follow the [installation instructions](https://github.com/kubernetes-sigs/lws/blob/main/site/content/en/docs/installation/_index.md). **Note:** For LWS versions ≤0.5.x, you must use the Downward API to obtain `LWS_WORKER_INDEX`, as native support for this feature was introduced in v0.6.0. ## Basic example @@ -95,10 +95,6 @@ spec: env: - name: NCCL_IB_GID_INDEX value: "3" - - name: LWS_WORKER_INDEX - valueFrom: - fieldRef: - fieldPath: metadata.labels['leaderworkerset.sigs.k8s.io/worker-index'] command: - python3 - -m @@ -164,10 +160,6 @@ spec: env: - name: NCCL_IB_GID_INDEX value: "3" - - name: LWS_WORKER_INDEX - valueFrom: - fieldRef: - fieldPath: metadata.labels['leaderworkerset.sigs.k8s.io/worker-index'] command: - python3 - -m