From be1037386f5c52f10058a6ba6f8a18054e67b8bb Mon Sep 17 00:00:00 2001 From: Kai-Hsun Chen Date: Fri, 8 Dec 2023 10:39:11 -0800 Subject: [PATCH] Update overwrite-container-cmd example (#1722) --- .../config/samples/ray-cluster.overwrite-command.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ray-operator/config/samples/ray-cluster.overwrite-command.yaml b/ray-operator/config/samples/ray-cluster.overwrite-command.yaml index 933eeeb3eb..b9669b2ec3 100644 --- a/ray-operator/config/samples/ray-cluster.overwrite-command.yaml +++ b/ray-operator/config/samples/ray-cluster.overwrite-command.yaml @@ -39,7 +39,7 @@ spec: # Starting from v1.1.0, KubeRay injects the environment variable `KUBERAY_GEN_RAY_START_CMD` # into the Ray container. This variable can be used to retrieve the generated Ray start command. # Note that this environment variable does not include the `ulimit` command. - args: ["echo head; ulimit -n 65536; $KUBERAY_GEN_RAY_START_CMD"] + args: ["ulimit -n 65536; echo head; $KUBERAY_GEN_RAY_START_CMD"] workerGroupSpecs: - replicas: 1 minReplicas: 0 @@ -60,4 +60,4 @@ spec: memory: "1G" # See the comments in headGroupSpec. command: ["/bin/bash", "-lc", "--"] - args: ["echo worker; ulimit -n 65536; $KUBERAY_GEN_RAY_START_CMD"] + args: ["ulimit -n 65536; echo worker; $KUBERAY_GEN_RAY_START_CMD"]