Skip to content

Commit 56925f1

Browse files
add MY_POD_IP to head nodes
1 parent 1ac83d2 commit 56925f1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
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:

tests/test-case-cmd.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ spec:
5757
template:
5858
spec:
5959
containers:
60-
- image: rayproject/ray:latest
60+
- env:
61+
- name: MY_POD_IP
62+
valueFrom:
63+
fieldRef:
64+
fieldPath: status.podIP
65+
image: rayproject/ray:latest
6166
imagePullPolicy: Always
6267
lifecycle:
6368
preStop:

0 commit comments

Comments
 (0)