diff --git a/README.md b/README.md index 711bfed5..f56806ff 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,12 @@ if you installed Go 1.16+, you can use install it by this command directly: go install github.com/wencaiwulue/kubevpn@latest ``` +### Install bookinfo as demo application + +```shell +kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml +``` + ## Functions ### Connect to k8s cluster network @@ -132,6 +138,17 @@ Hello world!% Hello world!% ``` +### Reverse proxy with mesh + +Only support HTTP and GRPC, with specific header `"KubeVPN-Routing-Tag: kubevpn"` will route to your local machine + +```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" +Hello world!% +``` + ### Multiple Protocol - TCP diff --git a/README_ZH.md b/README_ZH.md index 0c6498c1..8f4c3714 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -131,6 +131,17 @@ Hello world!% Hello world!% ``` +### 反向代理支持 service mesh + +只支持 HTTP 和 GRPC, 携带了指定 header `"KubeVPN-Routing-Tag: kubevpn"` 的流量,将会路由到本地 + +```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" +Hello world!% +``` + ### 支持多种协议 - TCP