diff --git a/charts/core/templates/ray-service/monitor.yaml b/charts/core/templates/ray-service/monitor.yaml index f2f0d9ee..7241dae0 100644 --- a/charts/core/templates/ray-service/monitor.yaml +++ b/charts/core/templates/ray-service/monitor.yaml @@ -1,3 +1,4 @@ +{{- if and .Values.rayService.enabled }} {{- if .Values.tags.prometheusStack }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor @@ -47,3 +48,4 @@ spec: podMetricsEndpoints: - port: metrics {{- end }} +{{- end }} diff --git a/charts/core/templates/ray-service/ray-service.yaml b/charts/core/templates/ray-service/ray-service.yaml index 58760672..db10e86e 100644 --- a/charts/core/templates/ray-service/ray-service.yaml +++ b/charts/core/templates/ray-service/ray-service.yaml @@ -1,3 +1,4 @@ +{{- if and .Values.rayService.enabled }} {{- $modelRepository := .Values.persistence.persistentVolumeClaim.modelRepository -}} {{- $rayConda := .Values.persistence.persistentVolumeClaim.rayConda -}} apiVersion: ray.io/v1 @@ -212,3 +213,4 @@ data: serve start --http-host=0.0.0.0 --grpc-port 9000 --grpc-servicer-functions ray_pb2_grpc.add_RayServiceServicer_to_server echo "INFO: Start ray serve" +{{- end }} diff --git a/charts/core/values.yaml b/charts/core/values.yaml index 190f4845..47f6e4ea 100644 --- a/charts/core/values.yaml +++ b/charts/core/values.yaml @@ -676,6 +676,7 @@ kuberay-operator: - "instill-ai" # -- The configuration of Ray rayService: + enabled: true vram: spec: autoscalerOptions: