From 47fd1a5eeef9ded842cf43a6477a55910f5b2f4b Mon Sep 17 00:00:00 2001 From: asparuhft Date: Wed, 24 Aug 2022 16:44:37 +0300 Subject: [PATCH] Add routing for locations-smartlogic-notifier service --- default.vcl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default.vcl b/default.vcl index 0fb1b9c..26fdea8 100644 --- a/default.vcl +++ b/default.vcl @@ -46,7 +46,11 @@ sub vcl_recv { elif (req.url ~ "^\/smartlogic.*$") { set req.url = regsub(req.url, "smartlogic", "notify"); set req.backend_hint = dynBackend.backend("smartlogic-notifier"); - } + } + elif (req.url ~ "^\/locations-smartlogic.*$") { + set req.url = regsub(req.url, "locations-smartlogic", "notify"); + set req.backend_hint = dynBackend.backend("locations-smartlogic-notifier"); + } elif (req.url ~ "^\/__[\w-]*\/.*$") { # create a new backend dynamically to match the requested URL that will be looked up in the Kubernetes DNS. # For example calling the URL /__content-ingester/xyz will forward the request to the service content-ingester with the url /xyz