Skip to content

Commit

Permalink
docs: remove '> connections.out &' part when use 'kubectl port-forward'
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Nov 13, 2024
1 parent 67fba56 commit 8effff5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ If you want to deploy the GreptimeDB cluster, you can use the following commands

```console
# You can use the MySQL or PostgreSQL client to connect the cluster, for example: 'mysql -h 127.0.0.1 -P 4002'.
kubectl port-forward -n default svc/mycluster-frontend 4001:4001 4002:4002 4003:4003 4000:4000 > connections.out &
kubectl port-forward -n default svc/mycluster-frontend 4001:4001 4002:4002 4003:4003 4000:4000
```

If you want to expose the service to the public, you can use the `kubectl port-forward` command with the `--address` option:

```console
kubectl port-forward --address 0.0.0.0 svc/mycluster-frontend 4001:4001 4002:4002 4003:4003 4000:4000 > connections.txt &
kubectl port-forward --address 0.0.0.0 svc/mycluster-frontend 4001:4001 4002:4002 4003:4003 4000:4000
```

You can also read and write data using refer to the [docs](https://docs.greptime.com/user-guide/cluster).
Expand Down
4 changes: 2 additions & 2 deletions charts/greptimedb-standalone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ helm upgrade --install greptimedb-standalone greptime/greptimedb-standalone \

```console
# You can use the MySQL client to connect the greptimedb, for example: 'mysql -h 127.0.0.1 -P 4002'.
kubectl port-forward -n default svc/greptimedb-standalone 4002:4002 > connections.out &
kubectl port-forward -n default svc/greptimedb-standalone 4002:4002

# You can use the PostgreSQL client to connect the greptimedb, for example: 'psql -h 127.0.0.1 -p 4003 -d public'.
kubectl port-forward -n default svc/greptimedb-standalone 4003:4003 > connections.out &
kubectl port-forward -n default svc/greptimedb-standalone 4003:4003
```

## How to uninstall
Expand Down
4 changes: 2 additions & 2 deletions charts/greptimedb-standalone/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ helm upgrade --install greptimedb-standalone greptime/greptimedb-standalone \

```console
# You can use the MySQL client to connect the greptimedb, for example: 'mysql -h 127.0.0.1 -P 4002'.
kubectl port-forward -n default svc/greptimedb-standalone 4002:4002 > connections.out &
kubectl port-forward -n default svc/greptimedb-standalone 4002:4002

# You can use the PostgreSQL client to connect the greptimedb, for example: 'psql -h 127.0.0.1 -p 4003 -d public'.
kubectl port-forward -n default svc/greptimedb-standalone 4003:4003 > connections.out &
kubectl port-forward -n default svc/greptimedb-standalone 4003:4003
```

## How to uninstall
Expand Down

0 comments on commit 8effff5

Please sign in to comment.