Skip to content

Commit a762019

Browse files
committed
Allow rayCluster to spin up in other ns
1 parent aa43051 commit a762019

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/codeflare_sdk/templates/new-template.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ spec:
162162
- sh
163163
- -c
164164
- cd /home/ray/workspace/tls && openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj '/CN=ray-head' && printf "authorityKeyIdentifier=keyid,issuer\nbasicConstraints=CA:FALSE\nsubjectAltName = @alt_names\n[alt_names]\nDNS.1 = 127.0.0.1\nDNS.2 = localhost\nDNS.3 = ${FQ_RAY_IP}\nDNS.4 = $(awk 'END{print $1}' /etc/hosts)\nDNS.5 = rayclient-deployment-name-$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).server-name">./domain.ext && cp /home/ray/workspace/ca/* . && openssl x509 -req -CA ca.crt -CAkey ca.key -in server.csr -out server.crt -days 365 -CAcreateserial -extfile domain.ext
165-
image: docker.io/redhat/ubi9
165+
image: rayproject/ray:2.5.0
166166
name: create-cert
167-
securityContext:
168-
runAsUser: 1000
169-
runAsGroup: 1000
167+
# securityContext:
168+
# runAsUser: 1000
169+
# runAsGroup: 1000
170170
volumeMounts:
171171
- name: ca-vol
172172
mountPath: "/home/ray/workspace/ca"
@@ -227,14 +227,14 @@ spec:
227227
image: busybox:1.28
228228
command: ['sh', '-c', "until nslookup $RAY_IP.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for myservice; sleep 2; done"]
229229
- name: create-cert
230-
image: docker.io/redhat/ubi9
230+
image: rayproject/ray:2.5.0
231231
command:
232232
- sh
233233
- -c
234234
- cd /home/ray/workspace/tls && openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj '/CN=ray-head' && printf "authorityKeyIdentifier=keyid,issuer\nbasicConstraints=CA:FALSE\nsubjectAltName = @alt_names\n[alt_names]\nDNS.1 = 127.0.0.1\nDNS.2 = localhost\nDNS.3 = ${FQ_RAY_IP}\nDNS.4 = $(awk 'END{print $1}' /etc/hosts)">./domain.ext && cp /home/ray/workspace/ca/* . && openssl x509 -req -CA ca.crt -CAkey ca.key -in server.csr -out server.crt -days 365 -CAcreateserial -extfile domain.ext
235-
securityContext:
236-
runAsUser: 1000
237-
runAsGroup: 1000
235+
# securityContext:
236+
# runAsUser: 1000
237+
# runAsGroup: 1000
238238
volumeMounts:
239239
- name: ca-vol
240240
mountPath: "/home/ray/workspace/ca"

0 commit comments

Comments
 (0)