diff --git a/sky/serve/service_spec.py b/sky/serve/service_spec.py index 6acd5a983bc..40b29c799db 100644 --- a/sky/serve/service_spec.py +++ b/sky/serve/service_spec.py @@ -26,10 +26,9 @@ def __init__( post_data: Optional[Dict[str, Any]] = None, auto_restart: bool = True, ) -> None: - if min_replicas < 0: + if min_replicas <= 0: with ux_utils.print_exception_no_traceback(): - raise ValueError( - 'min_replicas must be greater than or equal to 0') + raise ValueError('min_replicas must be greater than 0') if max_replicas is not None and max_replicas < min_replicas: with ux_utils.print_exception_no_traceback(): raise ValueError(