Skip to content

Commit

Permalink
fix: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tscuite committed Oct 14, 2022
1 parent 301b5ee commit b5ea16d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions deploy/kubernetes/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Before install, you have to make sure the helm is available. Follow [this guide]
2. Install

```
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --set storage.persistentVolumeClaim=pvc
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=pvc
```

This command will deploy dongtai servers in dongtai namespace and expose service with `ClusterIP`.
Expand Down Expand Up @@ -71,13 +72,18 @@ helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --va
You can also pass in a single value using **`--set`**, for example, you can switch defalut access type `ClusterIP` to `NodePort`

```shell
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --set storage.persistentVolumeClaim=pvc --set accessType=NodePort --set NodePort=30080 --set tag=1.8.5
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=pvc \
--set accessType=NodePort --set NodePort=30080 \
--set tag=1.8.5
```

If you need to modify somaxconn (128)

```
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --set storage.persistentVolumeClaim=pvc --set somaxconn=1024
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=pvc \
--set somaxconn=1024
```

Avaliable values:
Expand Down
12 changes: 9 additions & 3 deletions deploy/kubernetes/README.ZH-CN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,24 @@ redis:
```
``` shell script
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --values /tmp/my-values.yaml
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast \
--values /tmp/my-values.yaml
```

你也可以使用 `--set`来覆盖单个值, 例如: 你可以使用 `--set``ClusterIP` 切换成 `NodePort`

```shell
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --set storage.persistentVolumeClaim=pvc --set accessType=NodePort --set NodePort=30080 --set tag=1.8.5
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=pvc \
--set accessType=NodePort --set NodePort=30080 \
--set tag=1.8.5
```
如果你需要修改 somaxconn (128)

```
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast --set storage.persistentVolumeClaim=pvc --set somaxconn=1024
helm install ProjectName --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=pvc \
--set somaxconn=1024
```

可用值:
Expand Down

0 comments on commit b5ea16d

Please sign in to comment.