Open Sindica opened 3 years ago
One second thought, this may not be an bug for now since proxy probably only redirects based on url, not by post data. Create tenant is a post request that tenant name is contained in body but not url.
@Sindica Yes, currently our proxy cannot redirect the tenant creation requests since the tenant name is not in the POST url. In previous tests we also create tenants against different TPs directly.
In the complete design there will be a module to decide which TP this new tenant should be placed on. This module should support various plugin-style placement algorithms, so the placement policy can be very flexible (like random, round-robin, load-balanced, name-based, whitelist-based, etc.)
What happened:
Using kubeup/kubemark to start a 2TP/2RP cluster, create tenant arktos and zeta via proxy
Grepping log in tp 1 master.
Grepping log in tp 2 master.
Grepping proxy log, can only find DELETE redirect $ grep zeta haproxy.log Mar 27 02:07:28 ying-poc-merge-0326-2x500-kubemark-proxy haproxy[25876]: 34.83.188.222:40648 [27/Mar/2021:02:07:28.616] scale-out-proxy~ tenant_api_2/tp_2 0/0/4/3/+7 404 +350 - - ---- 1/1/1/1/0 0/0 "DELETE /api/v1/tenants/zeta HTTP/1.1"
Analysis
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):