Skip to content

Commit

Permalink
kuberay autoscaler pod use same command and args as ray head container (
Browse files Browse the repository at this point in the history
ray-project#2268)

* kuberay autoscaler pod use same command and args like main container

Signed-off-by: zheng <[email protected]>

* add new container args to pod test

---------

Signed-off-by: zheng <[email protected]>
Co-authored-by: 王正 <[email protected]>
  • Loading branch information
cswangzheng and 王正 authored Aug 4, 2024
1 parent 6c168a0 commit a6816ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions ray-operator/controllers/ray/common/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,12 @@ func BuildAutoscalerContainer(autoscalerImage string) corev1.Container {
},
},
Command: []string{
"ray",
"/bin/bash",
"-lc",
"--",
},
Args: []string{
"kuberay-autoscaler",
"--cluster-name",
"$(RAY_CLUSTER_NAME)",
"--cluster-namespace",
"$(RAY_CLUSTER_NAMESPACE)",
"ray kuberay-autoscaler --cluster-name $(RAY_CLUSTER_NAME) --cluster-namespace $(RAY_CLUSTER_NAMESPACE)",
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down
10 changes: 4 additions & 6 deletions ray-operator/controllers/ray/common/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,12 @@ var autoscalerContainer = corev1.Container{
},
},
Command: []string{
"ray",
"/bin/bash",
"-lc",
"--",
},
Args: []string{
"kuberay-autoscaler",
"--cluster-name",
"$(RAY_CLUSTER_NAME)",
"--cluster-namespace",
"$(RAY_CLUSTER_NAMESPACE)",
"ray kuberay-autoscaler --cluster-name $(RAY_CLUSTER_NAME) --cluster-namespace $(RAY_CLUSTER_NAMESPACE)",
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down

0 comments on commit a6816ff

Please sign in to comment.