bareapi nginx配置
server { listen 80; server_name "~^(?<service_name>[a-zA-Z0-9\-]+)\.bareapi\.(?<namespace_name>(test0|test1|uat|dev|test2|test3))\.xxx.xxx.com$"; location ~ (.*) { set $backend "http://$service_name.$namespace_name.svc.cluster.local$1$is_args$args"; resolver 172.30.0.10; #coredns地址 proxy_pass $backend; } }