Skip to content

Commit

Permalink
fix(apiserver): env MEMORY_REQUESTS and MEMORY_LIMITS use memory Reso…
Browse files Browse the repository at this point in the history
…urceField

Signed-off-by: Abirdcfly <[email protected]>
  • Loading branch information
Abirdcfly committed Oct 11, 2024
1 parent 9a0b9d0 commit 47e80d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apiserver/pkg/util/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"strings"

klog "k8s.io/klog/v2"
"k8s.io/klog/v2"

api "github.com/ray-project/kuberay/proto/go_client"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -464,7 +464,7 @@ func buildWorkerPodTemplate(imageVersion string, envs *api.EnvironmentVariables,
ValueFrom: &corev1.EnvVarSource{
ResourceFieldRef: &corev1.ResourceFieldSelector{
ContainerName: "ray-worker",
Resource: "requests.cpu",
Resource: "requests.memory",
},
},
},
Expand All @@ -473,7 +473,7 @@ func buildWorkerPodTemplate(imageVersion string, envs *api.EnvironmentVariables,
ValueFrom: &corev1.EnvVarSource{
ResourceFieldRef: &corev1.ResourceFieldSelector{
ContainerName: "ray-worker",
Resource: "limits.cpu",
Resource: "limits.memory",
},
},
},
Expand Down

0 comments on commit 47e80d3

Please sign in to comment.