From b324a26ff58a4110afb4a3613bf20ce308e7ccf2 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 16 Sep 2021 15:35:26 +0100 Subject: [PATCH] updating envoy config for kubernetes --- hosting/kubernetes/envoy/envoy.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosting/kubernetes/envoy/envoy.yaml b/hosting/kubernetes/envoy/envoy.yaml index 0e7859d887..0b4c9204eb 100644 --- a/hosting/kubernetes/envoy/envoy.yaml +++ b/hosting/kubernetes/envoy/envoy.yaml @@ -34,10 +34,18 @@ static_resources: cluster: app-service # special case for worker admin API + - match: { prefix: "/api/global/" } + route: + cluster: worker-service + - match: { prefix: "/api/admin/" } route: cluster: worker-service + - match: { prefix: "/api/system/" } + route: + cluster: worker-service + - match: { path: "/" } route: cluster: app-service @@ -120,6 +128,6 @@ static_resources: - endpoint: address: socket_address: - address: couchdb-service.budibase.svc.cluster.local + address: budibase-prod-svc-couchdb port_value: 5984