Skip to content

Commit cef3d09

Browse files
committed
Updated ray-cluster file
1 parent 7d160a6 commit cef3d09

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

docker/runner/ray-cluster.yaml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ spec:
1313
labels:
1414
app: ray-head
1515
spec:
16+
hostNetwork: false
1617
containers:
1718
- name: ray-head
18-
image: rayproject/ray:latest-py310
19+
image: roboteamtwente/ray:development
1920
ports:
2021
- containerPort: 8265 # dashboard port
2122
- containerPort: 6379 # redis port
@@ -28,6 +29,15 @@ spec:
2829
limits:
2930
cpu: "1" # Changed from 600 (which was too high)
3031
memory: "2Gi" # Increased from 512Mi
32+
33+
env:
34+
- name: SIMULATION_HOST
35+
value: "127.0.0.1" # Using localhost since we're on host network
36+
- name: VISION_PORT
37+
value: "10020" # Match your simulator's vision port
38+
- name: REFEREE_PORT
39+
value: "10003" # Match your simulator's referee port
40+
3141
command: ["/bin/bash", "-c", "--"]
3242
args: ["ray start --head --port=6379 --dashboard-host=0.0.0.0 --block"]
3343
livenessProbe:
@@ -63,9 +73,10 @@ spec:
6373
labels:
6474
app: ray-worker
6575
spec:
76+
hostNetwork: false
6677
containers:
6778
- name: ray-worker
68-
image: rayproject/ray:latest-py310
79+
image: roboteamtwente/ray:development
6980
resources:
7081
requests:
7182
cpu: 500m
@@ -78,3 +89,31 @@ spec:
7889
value: "roboteam-ray-cluster-head-svc.default.svc.cluster.local"
7990
command: ["/bin/bash", "-c", "--"]
8091
args: ["ray start --address='roboteam-ray-cluster-head-svc.default.svc.cluster.local:6379' --block"]
92+
93+
#Add service for port forwarding
94+
---
95+
apiVersion: v1
96+
kind: Service
97+
metadata:
98+
name: roboteam-ray-cluster-head-nodeport # Changed name to avoid conflict
99+
spec:
100+
type: NodePort
101+
selector:
102+
app: ray-head
103+
ports:
104+
- name: dashboard
105+
port: 8265
106+
targetPort: 8265
107+
nodePort: 30265 # Ray dashboard
108+
- name: redis
109+
port: 6379
110+
targetPort: 6379
111+
nodePort: 30679 # Redis
112+
- name: gcs
113+
port: 10001
114+
targetPort: 10001
115+
nodePort: 31001 # GCS server
116+
- name: serve
117+
port: 8000
118+
targetPort: 8000
119+
nodePort: 30800 # Serve

0 commit comments

Comments
 (0)