Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions iac/modules/job-api/jobs/api.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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:<port> 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 {
Expand Down
Loading