Skip to content

Commit 9f8308e

Browse files
committed
docs: update usage
1 parent 8199cf5 commit 9f8308e

File tree

4 files changed

+10
-67
lines changed

4 files changed

+10
-67
lines changed

docs/commands/6_kubevpn_clone.md

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,18 @@ supports service mesh proxy. only traffic with special header will hit to cloned
1313

1414
## clone
1515

16-
### clone deployment run into current cluster and current namespace
16+
### clone current namespace deployment
1717

1818
```shell
1919
kubevpn clone deployment/productpage
2020
```
2121

22-
### clone deployment run into current cluster with different namespace
22+
### clone deployment in namespace test
2323

2424
```shell
2525
kubevpn clone deployment/productpage -n test
2626
```
2727

28-
### clone deployment run into another cluster
29-
30-
```shell
31-
kubevpn clone deployment/productpage --target-kubeconfig ~/.kube/other-kubeconfig
32-
```
33-
34-
### clone multiple workloads run into current cluster and current namespace
35-
36-
```shell
37-
kubevpn clone deployment/authors deployment/productpage
38-
```
39-
40-
or
41-
42-
```shell
43-
kubevpn clone deployment authors productpage
44-
```
45-
4628
# clone with mesh, traffic with HTTP header foo=bar, will hit cloned workloads, otherwise hit origin workloads
4729

4830
```shell
@@ -136,22 +118,9 @@ Optional username for ssh jump server
136118
--sync='':
137119
Sync local dir to remote pod dir. format: LOCAL_DIR:REMOTE_DIR, eg: ~/code:/app/code
138120
139-
--target-container='':
140-
Clone container use special image to startup this container, if not special, use origin image
141-
142121
--target-image='':
143122
Clone container use this image to startup container, if not special, use origin image
144123
145-
--target-kubeconfig='':
146-
Clone workloads will create in this cluster, if not special, use origin cluster
147-
148-
--target-namespace='':
149-
Clone workloads in this namespace, if not special, use origin namespace
150-
151-
--target-registry='':
152-
Clone workloads will create this registry domain to replace origin registry, if not special, use origin
153-
registry
154-
155124
--transfer-image=false:
156125
transfer image to remote registry, it will transfer image docker.io/naison/kubevpn:v2.2.17 to flags `--image`
157126
special image, default: docker.io/naison/kubevpn:v2.2.17

i18n/zh/docusaurus-plugin-content-docs/current/commands/4_kubevpn_proxy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ SSH 跳板服务器的密码
165165
--ssh-username='':
166166
SSH 跳板服务器的用户名
167167
168+
--transfer-image=false:
168169
将镜像转存到远程仓库,它将镜像 docker.io/naison/kubevpn:v2.2.17 转存到 `--image`
169170
特定镜像,默认为:docker.io/naison/kubevpn:v2.2.17
170171
```

i18n/zh/docusaurus-plugin-content-docs/current/commands/6_kubevpn_clone.md

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,27 @@ sidebar_position: 6
44

55
# kubevpn clone
66

7-
克隆工作负载运行到目标 kubeconfig 集群中,包括相同的卷、环境和网络配置
7+
克隆工作负载运行在当前工作空间中,可以使用相同的卷、环境和网络配置
88

9-
通过这种方式,您可以在相同或不同的集群中启动另一个 deployment,使用不同的镜像版本。它还支持服务网格代理。只有带有特殊 HTTP header 的流量才会被路由到克隆的资源。
9+
通过这种方式,您可以在当前工作空间中启动另一个克隆的 deployment,使用不同的镜像版本。它还支持服务网格代理。只有带有特殊 HTTP
10+
header 的流量才会被路由到克隆的资源。
1011

1112
# 示例
1213

1314
## 克隆
1415

15-
### 克隆 deployment 运行在在当前集群和当前命名空间中
16+
### 克隆默认 namespace 下的 deployment
1617

1718
```shell
1819
kubevpn clone deployment/productpage
1920
```
2021

21-
### 克隆 deployment 运行在当前集群中但使用不同命名空间
22+
### 克隆命名空间为 test 下的 deployment
2223

2324
```shell
2425
kubevpn clone deployment/productpage -n test
2526
```
2627

27-
### 克隆 deployment 运行到另一个集群中
28-
29-
```shell
30-
kubevpn clone deployment/productpage --target-kubeconfig ~/.kube/other-kubeconfig
31-
```
32-
33-
### 克隆多个工作负载运行在在当前集群和当前命名空间中
34-
35-
```shell
36-
kubevpn clone deployment/authors deployment/productpage
37-
```
38-
39-
40-
41-
```shell
42-
kubevpn clone deployment authors productpage
43-
```
44-
4528
# 使用服务网格克隆,带有HTTP header foo=bar 的流量会路由到克隆的工作负载,否则路由到原始工作负载
4629

4730
```shell
@@ -134,21 +117,10 @@ SSH 跳板服务器的用户名
134117
--sync='':
135118
将本地目录同步到远程 pod 目录。格式:LOCAL_DIR:REMOTE_DIR,例如:~/code:/app/code
136119
137-
--target-container='':
138-
使用特殊镜像启动的克隆容器,如果未指定,使用原始镜像
139-
140120
--target-image='':
141121
使用此镜像启动容器,如果未指定,使用原始镜像
142122
143-
--target-kubeconfig='':
144-
将在此集群中创建克隆工作负载,如果未指定,使用原始集群
145-
146-
--target-namespace='':
147-
在此命名空间中克隆工作负载,如果未指定,使用原始命名空间
148-
149-
--target-registry='':
150-
使用此镜像仓库替换克隆工作负载的原始镜像仓库,如果未指定,使用原始镜像仓库
151-
123+
--transfer-image=false:
152124
将镜像转存到远程仓库,它将镜像 docker.io/naison/kubevpn:v2.2.17 转存到 `--image`
153125
特定镜像,默认为:docker.io/naison/kubevpn:v2.2.17
154126
```

i18n/zh/docusaurus-plugin-content-docs/current/commands/8_kubevpn_dev.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ SSH 跳板机的可选密码
170170
--ssh-username='':
171171
SSH 跳板机的可选用户名
172172
173+
--transfer-image=false:
173174
将镜像转存到远程仓库,它将镜像 docker.io/naison/kubevpn:v2.2.17 转存到 `--image`
174175
特定镜像,默认为:docker.io/naison/kubevpn:v2.2.17
175176

0 commit comments

Comments
 (0)