-
Notifications
You must be signed in to change notification settings - Fork 402
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
Inject cluster name as an environment variable into head and worker pods #934
Inject cluster name as an environment variable into head and worker pods #934
Conversation
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.
Thank you for your contribution! Could you
(1) Think about the comparisons between injecting the env variable by KubeRay operator or setting by YAML files.
(2) Add some tests.
(3) Test autoscaler.
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.
Check whether BuildPod
will always be called after DefaultWorkerPodTemplate
and DefaultHeadPodTemplate
.
This looks like a better solution? |
Signed-off-by: Yicheng-Lu-llll <[email protected]>
11efe1d
to
63c7aec
Compare
Signed-off-by: Yicheng-Lu-llll <[email protected]>
Updated. Thank you for pointing that out! |
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.
Can you add a document for environment_variables? Thanks!
Signed-off-by: Yicheng-Lu-llll <[email protected]>
6f714e7
to
33d14f3
Compare
Signed-off-by: Yicheng-Lu-llll <[email protected]>
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.
Should we also update this line?
Name: "RAY_CLUSTER_NAME", |
and this one
FieldPath: "metadata.labels['ray.io/cluster']", |
Signed-off-by: Yicheng-Lu-llll <[email protected]>
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.
…ods (ray-project#934) Inject cluster name as an environment variable into head and worker pods. With this PR, users can use $RAY_CLUSTER_NAME to get RayCluster's name in Pods.
Why are these changes needed?
See #928.
Now user can get env var
RAY_CLUSTER_NAME
in head and worker pods.Related issue number
Closes #928
Checks