From 0b2448e7f252381436587ac5c7055eb61456786c Mon Sep 17 00:00:00 2001 From: Jakub Novak Date: Tue, 12 May 2026 11:27:30 +0000 Subject: [PATCH] fix(api): re-register api-grpc Consul service as alias of api-internal-grpc #2470 renamed the API internal gRPC Consul service from api-grpc to api-internal-grpc. Old client-proxy allocations still have API_GRPC_ADDRESS=api-grpc.service.consul: baked in and break when the old name disappears. Re-register api-grpc on the same internal port so legacy client proxies keep working during the migration. Remove once no pre-#2470 client-proxy allocations remain. --- iac/modules/job-api/jobs/api.hcl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/iac/modules/job-api/jobs/api.hcl b/iac/modules/job-api/jobs/api.hcl index f64f2e340c..ed518a7a32 100644 --- a/iac/modules/job-api/jobs/api.hcl +++ b/iac/modules/job-api/jobs/api.hcl @@ -99,6 +99,23 @@ job "api" { } } + # Compatibility alias for service name `api-grpc`, which was renamed to `api-internal-grpc` in #2470. + # Old client-proxy allocations were rendered with API_GRPC_ADDRESS=api-grpc.service.consul: and still expect that name. + # Drop this block once all old client-proxy allocations have been replaced. + service { + name = "api-grpc" + port = "api_internal_grpc" + task = "start" + + check { + type = "tcp" + name = "api-grpc" + interval = "3s" + timeout = "3s" + port = "api_internal_grpc" + } + } + %{ if update_stanza } # An update stanza to enable rolling updates of the service update {