Skip to content

Commit 5b17437

Browse files
add MY_POD_IP to head nodes
1 parent 1ac83d2 commit 5b17437

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/codeflare_sdk/templates/new-template.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ spec:
114114
- "aw-kuberay"
115115
containers:
116116
# The Ray head pod
117-
- name: ray-head
117+
- env:
118+
- name: MY_POD_IP
119+
valueFrom:
120+
fieldRef:
121+
fieldPath: status.podIP
122+
name: ray-head
118123
image: rayproject/ray:latest
119124
imagePullPolicy: Always
120125
ports:

0 commit comments

Comments
 (0)