Skip to content

Commit

Permalink
feat: update command dev usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wencaiwulue committed Jul 26, 2024
1 parent d7e26ae commit 31a6d5d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
6 changes: 3 additions & 3 deletions docs/functions/7_dev_mode_in_local.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ with
the specified header or all the traffic to the local Docker container.

```shell
~ kubevpn dev deployment/authors --headers a=1 -it --rm --entrypoint sh
~ kubevpn dev deployment/authors --headers a=1 --entrypoint sh
connectting to cluster
start to connect
got cidr from cache
Expand Down Expand Up @@ -109,13 +109,13 @@ docker logs $(docker ps --format '{{.Names}}' | grep nginx_default_kubevpn)
If you just want to start up a docker image, you can use simple way like this:
```shell
kubevpn dev deployment/authors --no-proxy -it --rm
kubevpn dev deployment/authors --no-proxy
```
Example:
```shell
➜ ~ kubevpn dev deployment/authors --no-proxy -it --rm
➜ ~ kubevpn dev deployment/authors --no-proxy
connectting to cluster
start to connect
got cidr from cache
Expand Down
9 changes: 1 addition & 8 deletions docs/functions/8_dind.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ e008f553422a: Pull complete
33f0298d1d4f: Pull complete
Digest: sha256:115b975a97edd0b41ce7a0bc1d8428e6b8569c91a72fe31ea0bada63c685742e
Status: Downloaded newer image for naison/kubevpn:v2.0.0
root@d0b3dab8912a:/app# kubevpn dev deployment/authors --headers user=naison -it --entrypoint sh

----------------------------------------------------------------------------------
Warn: Use sudo to execute command kubevpn can not use user env KUBECONFIG.
Because of sudo user env and user env are different.
Current env KUBECONFIG value:
----------------------------------------------------------------------------------

root@d0b3dab8912a:/app# kubevpn dev deployment/authors --headers user=naison --entrypoint sh
hostname is d0b3dab8912a
connectting to cluster
start to connect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_position: 7
将 Kubernetes pod 运行在本地的 Docker 容器中🐳,同时配合 service mesh, 拦截带有指定 header 的流量到本地,或者所有的流量到本地。这个开发模式依赖于本地 Docker。

```shell
~ kubevpn dev deployment/authors --headers a=1 -it --rm --entrypoint sh
~ kubevpn dev deployment/authors --headers a=1 --entrypoint sh
connectting to cluster
start to connect
got cidr from cache
Expand Down Expand Up @@ -89,13 +89,13 @@ fc04e42799a5 nginx:latest "/docker-entrypoint.…" 37 sec
如果你只是想在本地启动镜像,可以用一种简单的方式:
```shell
kubevpn dev deployment/authors --no-proxy -it --rm
kubevpn dev deployment/authors --no-proxy
```
例如:
```shell
➜ ~ kubevpn dev deployment/authors --no-proxy -it --rm
➜ ~ kubevpn dev deployment/authors --no-proxy
connectting to cluster
start to connect
got cidr from cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ e008f553422a: Pull complete
Digest: sha256:115b975a97edd0b41ce7a0bc1d8428e6b8569c91a72fe31ea0bada63c685742e
Status: Downloaded newer image for naison/kubevpn:v2.0.0
root@d0b3dab8912a:/app# kubevpn dev deployment/authors --headers user=naison -it --entrypoint sh

----------------------------------------------------------------------------------
Warn: Use sudo to execute command kubevpn can not use user env KUBECONFIG.
Because of sudo user env and user env are different.
Current env KUBECONFIG value:
----------------------------------------------------------------------------------

hostname is d0b3dab8912a
connectting to cluster
start to connect
Expand Down

0 comments on commit 31a6d5d

Please sign in to comment.