Skip to content

Commit dee975b

Browse files
add MY_POD_IP to head nodes (#92)
* add MY_POD_IP to head nodes * update test-case yamls
1 parent 1ac83d2 commit dee975b

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
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:

tests/test-case.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ spec:
6868
values:
6969
- unit-test-cluster
7070
containers:
71-
- image: ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103
71+
- env:
72+
- name: MY_POD_IP
73+
valueFrom:
74+
fieldRef:
75+
fieldPath: status.podIP
76+
image: ghcr.io/foundation-model-stack/base:ray2.1.0-py38-gpu-pytorch1.12.0cu116-20221213-193103
7277
imagePullPolicy: Always
7378
lifecycle:
7479
preStop:

0 commit comments

Comments
 (0)