Skip to content

Commit fffe778

Browse files
authored
Remove preStop hooks from Ray CR Samples (ray-project#2724)
1 parent 5db3012 commit fffe778

20 files changed

+0
-104
lines changed

ray-operator/config/samples/ray-cluster.autoscaler-v2.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ spec:
4141
name: dashboard
4242
- containerPort: 10001
4343
name: client
44-
lifecycle:
45-
preStop:
46-
exec:
47-
command: ["/bin/sh","-c","ray stop"]
4844
resources:
4945
limits:
5046
cpu: "1"

ray-operator/config/samples/ray-cluster.autoscaler.large.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ spec:
9191
name: dashboard
9292
- containerPort: 10001
9393
name: client
94-
lifecycle:
95-
preStop:
96-
exec:
97-
command: ["/bin/sh","-c","ray stop"]
9894
workerGroupSpecs:
9995
# the pod replicas in this group typed worker
10096
- replicas: 1
@@ -139,7 +135,3 @@ spec:
139135
requests:
140136
cpu: 14
141137
memory: 54Gi
142-
lifecycle:
143-
preStop:
144-
exec:
145-
command: ["/bin/sh","-c","ray stop"]

ray-operator/config/samples/ray-cluster.autoscaler.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ spec:
6363
name: dashboard
6464
- containerPort: 10001
6565
name: client
66-
lifecycle:
67-
preStop:
68-
exec:
69-
command: ["/bin/sh","-c","ray stop"]
7066
resources:
7167
limits:
7268
cpu: "1"
@@ -109,10 +105,6 @@ spec:
109105
containers:
110106
- name: ray-worker
111107
image: rayproject/ray:2.9.0
112-
lifecycle:
113-
preStop:
114-
exec:
115-
command: ["/bin/sh","-c","ray stop"]
116108
resources:
117109
limits:
118110
cpu: "1"

ray-operator/config/samples/ray-cluster.complete.large.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ spec:
5252
name: dashboard
5353
- containerPort: 10001
5454
name: client
55-
lifecycle:
56-
preStop:
57-
exec:
58-
command: ["/bin/sh","-c","ray stop"]
5955
volumeMounts:
6056
- mountPath: /tmp/ray
6157
name: ray-logs
@@ -100,10 +96,6 @@ spec:
10096
requests:
10197
cpu: 14
10298
memory: 54Gi
103-
lifecycle:
104-
preStop:
105-
exec:
106-
command: ["/bin/sh","-c","ray stop"]
10799
# use volumeMounts.Optional.
108100
# Refer to https://kubernetes.io/docs/concepts/storage/volumes/
109101
volumeMounts:

ray-operator/config/samples/ray-cluster.complete.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ spec:
3838
name: dashboard
3939
- containerPort: 10001
4040
name: client
41-
lifecycle:
42-
preStop:
43-
exec:
44-
command: ["/bin/sh","-c","ray stop"]
4541
volumeMounts:
4642
- mountPath: /tmp/ray
4743
name: ray-logs
@@ -92,10 +88,6 @@ spec:
9288
containers:
9389
- name: ray-worker
9490
image: rayproject/ray:2.9.0
95-
lifecycle:
96-
preStop:
97-
exec:
98-
command: ["/bin/sh","-c","ray stop"]
9991
# use volumeMounts.Optional.
10092
# Refer to https://kubernetes.io/docs/concepts/storage/volumes/
10193
volumeMounts:

ray-operator/config/samples/ray-cluster.embed-grafana.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ spec:
3232
name: as-metrics # autoscaler
3333
- containerPort: 44227
3434
name: dash-metrics # dashboard
35-
lifecycle:
36-
preStop:
37-
exec:
38-
command: ["/bin/sh","-c","ray stop"]
3935
volumeMounts:
4036
- mountPath: /tmp/ray
4137
name: ray-logs
@@ -69,10 +65,6 @@ spec:
6965
containers:
7066
- name: ray-worker
7167
image: rayproject/ray:2.9.0
72-
lifecycle:
73-
preStop:
74-
exec:
75-
command: ["/bin/sh","-c","ray stop"]
7668
volumeMounts:
7769
- mountPath: /tmp/ray
7870
name: ray-logs

ray-operator/config/samples/ray-cluster.tls.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ spec:
7979
name: dashboard
8080
- containerPort: 10001
8181
name: client
82-
lifecycle:
83-
preStop:
84-
exec:
85-
command: ["/bin/sh","-c","ray stop"]
8682
volumeMounts:
8783
- mountPath: /tmp/ray
8884
name: ray-logs
@@ -160,10 +156,6 @@ spec:
160156
containers:
161157
- name: ray-worker
162158
image: rayproject/ray:2.9.0
163-
lifecycle:
164-
preStop:
165-
exec:
166-
command: ["/bin/sh","-c","ray stop"]
167159
# use volumeMounts.Optional.
168160
# Refer to https://kubernetes.io/docs/concepts/storage/volumes/
169161
volumeMounts:

ray-operator/config/samples/ray-job.custom-head-svc.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ spec:
7676
containers:
7777
- name: ray-worker # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'
7878
image: rayproject/ray:2.9.0
79-
lifecycle:
80-
preStop:
81-
exec:
82-
command: [ "/bin/sh","-c","ray stop" ]
8379
resources:
8480
limits:
8581
cpu: "1"

ray-operator/config/samples/ray-job.resources.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ spec:
8888
containers:
8989
- name: ray-worker # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'
9090
image: rayproject/ray:2.5.0
91-
lifecycle:
92-
preStop:
93-
exec:
94-
command: [ "/bin/sh","-c","ray stop" ]
9591
resources:
9692
requests:
9793
cpu: "200m"

ray-operator/config/samples/ray-job.sample.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ spec:
9191
containers:
9292
- name: ray-worker # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'
9393
image: rayproject/ray:2.9.0
94-
lifecycle:
95-
preStop:
96-
exec:
97-
command: [ "/bin/sh","-c","ray stop" ]
9894
resources:
9995
limits:
10096
cpu: "1"

0 commit comments

Comments
 (0)