Skip to content

Commit

Permalink
fix install bug (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stella0621 authored Nov 8, 2023
1 parent 429fedf commit d1045cc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
16 changes: 9 additions & 7 deletions docs/usage/Install.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This page provides instructions for quickly installing EgressGateway on a self-m

```shell
# set chainInsertMode
$ kubectl patch FelixConfiguration default --patch '{"spec": {"chainInsertMode": "Append"}}'
$ kubectl patch felixconfigurations default --type='merge' -p '{"spec":{"chainInsertMode":"Append"}}'
# check status
$ kubectl get FelixConfiguration default -o yaml
Expand Down Expand Up @@ -126,6 +126,7 @@ helm repo update
2. Label the egress gateway nodes by applying labels to them. For production environments, it is recommended to label at least 2 nodes. For POC environments, label 1 node.
```shell
kubectl get node
kubectl label node $NodeName egressgateway="true"
```
Expand Down Expand Up @@ -179,13 +180,14 @@ helm repo update
apiVersion: egressgateway.spidernet.io/v1beta1
kind: EgressPolicy
metadata:
name: test
namespace: default
name: test
namespace: default
spec:
appliedTo:
podSelector:
matchLabels:
app: "visitor"
egressGatewayName: default
appliedTo:
podSelector:
matchLabels:
app: "visitor"
EOF
```
Expand Down
17 changes: 10 additions & 7 deletions docs/usage/Install.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

```shell
# set chainInsertMode
$ kubectl patch FelixConfiguration default --patch '{"spec": {"chainInsertMode": "Append"}}'
$ kubectl patch felixconfigurations default --type='merge' -p '{"spec":{"chainInsertMode":"Append"}}'

# check status
$ kubectl get FelixConfiguration default -o yaml
Expand Down Expand Up @@ -126,6 +127,7 @@ helm repo update
2. 给出口网关节点打上 label,可以给多个 node 打上 label,作为生产环境,建议 2 个节点,作为 POC 环境, 建议 1 个节点即可
```shell
kubectl get node
kubectl label node $NodeName egressgateway="true"
```
Expand Down Expand Up @@ -180,13 +182,14 @@ helm repo update
apiVersion: egressgateway.spidernet.io/v1beta1
kind: EgressPolicy
metadata:
name: test
namespace: default
name: test
namespace: default
spec:
appliedTo:
podSelector:
matchLabels:
app: "visitor"
egressGatewayName: default
appliedTo:
podSelector:
matchLabels:
app: "visitor"
EOF
```
Expand Down

1 comment on commit d1045cc

@weizhoublue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.