diff --git a/README.md b/README.md index 9fb897a9..4f99bc1d 100644 --- a/README.md +++ b/README.md @@ -140,10 +140,10 @@ Hello world!% ### Reverse proxy with mesh -Only support HTTP and GRPC, with specific header `"KubeVPN-Routing-Tag: kubevpn"` will route to your local machine +Only support HTTP and GRPC, with specific header `"a: 1"` will route to your local machine ```shell -➜ ~ sudo kubevpn connect --namespace=test --workloads=service/nginx --workloads=serivce/tomcat --mode=mesh +➜ ~ sudo kubevpn connect --namespace=test --workloads=service/nginx --workloads=serivce/tomcat --mode=mesh --headers a=1 INFO[0000] kubeconfig path: /Users/naison/.kube/config, namespace: test, serivces: serivce/nginx,service/tomcat INFO[0001] prepare to expose local service to remote service: tomcat INFO[0001] prepare to expose local service to remote service: nginx @@ -157,7 +157,7 @@ INFO[0036] port forward ready ```shell ➜ ~ curl tomcat:8080 HTTP Status 404 – Not Found

HTTP Status 404 – Not Found


Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/9.0.52

% -➜ ~ curl tomcat:8080 -H "KubeVPN-Routing-Tag: kubevpn" +➜ ~ curl tomcat:8080 -H "a: 1" Hello world!% ``` diff --git a/README_ZH.md b/README_ZH.md index 3cf8f3a6..a579099c 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -133,10 +133,10 @@ Hello world!% ### 反向代理支持 service mesh -只支持 HTTP 和 GRPC, 携带了指定 header `"KubeVPN-Routing-Tag: kubevpn"` 的流量,将会路由到本地 +只支持 HTTP 和 GRPC, 携带了指定 header `"a: 1"` 的流量,将会路由到本地 ```shell -➜ ~ sudo kubevpn connect --namespace=test --workloads=service/nginx --workloads=serivce/tomcat --mode=mesh +➜ ~ sudo kubevpn connect --namespace=test --workloads=service/nginx --workloads=serivce/tomcat --mode=mesh --headers a=1 INFO[0000] kubeconfig path: /Users/naison/.kube/config, namespace: test, serivces: serivce/nginx,service/tomcat INFO[0001] prepare to expose local service to remote service: tomcat INFO[0001] prepare to expose local service to remote service: nginx @@ -150,7 +150,7 @@ INFO[0036] port forward ready ```shell ➜ ~ curl tomcat:8080 HTTP Status 404 – Not Found

HTTP Status 404 – Not Found


Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/9.0.52

% -➜ ~ curl tomcat:8080 -H "KubeVPN-Routing-Tag: kubevpn" +➜ ~ curl tomcat:8080 -H "a: 1" Hello world!% ```