mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
update readme
This commit is contained in:
17
README.md
17
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
|
||||
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/9.0.52</h3></body></html>%
|
||||
➜ ~ curl tomcat:8080 -H "KubeVPN-Routing-Tag: kubevpn"
|
||||
Hello world!%
|
||||
```
|
||||
|
||||
### Multiple Protocol
|
||||
|
||||
- TCP
|
||||
|
||||
11
README_ZH.md
11
README_ZH.md
@@ -131,6 +131,17 @@ Hello world!%
|
||||
Hello world!%
|
||||
```
|
||||
|
||||
### 反向代理支持 service mesh
|
||||
|
||||
只支持 HTTP 和 GRPC, 携带了指定 header `"KubeVPN-Routing-Tag: kubevpn"` 的流量,将会路由到本地
|
||||
|
||||
```shell
|
||||
➜ ~ curl tomcat:8080
|
||||
<!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/9.0.52</h3></body></html>%
|
||||
➜ ~ curl tomcat:8080 -H "KubeVPN-Routing-Tag: kubevpn"
|
||||
Hello world!%
|
||||
```
|
||||
|
||||
### 支持多种协议
|
||||
|
||||
- TCP
|
||||
|
||||
Reference in New Issue
Block a user