Skip to content

Commit

Permalink
docs: update grpc proxy (#1698)
Browse files Browse the repository at this point in the history
Co-authored-by: AlinsRan <alinsran@apache.org>
  • Loading branch information
AlinsRan and AlinsRan authored Mar 3, 2023
1 parent f6b3349 commit de1928e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/en/latest/tutorials/proxy-grpc-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ helm install apisix apisix/apisix -n ingress-apisix \

Check that all related components have been installed successfully, including ETCD cluster / APISIX / apisix-ingress-controller.

```bash
kubectl get pod -n ingress-apisix
```shell
$ kubectl get pod -n ingress-apisix
NAME READY STATUS RESTARTS AGE
apisix-569f94b7b6-qt5jj 1/1 Running 0 101m
apisix-etcd-0 1/1 Running 0 101m
Expand All @@ -72,10 +72,10 @@ kubectl run yages -n ingress-apisix --image smirl/yages:0.1.3 --expose --port 90

Use the service that includes `grpcurl` to test gRPC connectivity.

```bash
kubectl run -it -n ingress-apisix --rm grpcurl --restart=Never --image=quay.io/mhausenblas/gump:0.1 -- sh
If you don't see a command prompt, try pressing enter.
/go $ grpcurl --plaintext yages:9000 yages.Echo.Ping
```shell
$ kubectl run -it -n ingress-apisix --rm grpcurl --restart=Never --image=fullstorydev/grpcurl:v1.8.7 --command -- \
/bin/grpcurl -plaintext yages:9000 yages.Echo.Ping
# It should output:
{
"text": "pong"
}
Expand Down Expand Up @@ -172,10 +172,10 @@ apisix-ingress-controller ClusterIP 10.96.78.108 <none> 80/TCP
yages ClusterIP 10.96.37.236 <none> 9000/TCP 94m
```

```bash
kubectl run -it -n ingress-apisix --rm grpcurl --restart=Never --image=quay.io/mhausenblas/gump:0.1 -- sh
If you don't see a command prompt, try pressing enter.
/go $ grpcurl --insecure -servername grpc-proxy apisix-gateway:443 yages.Echo.Ping
```shell
$ kubectl run -it -n ingress-apisix --rm grpcurl --restart=Never --image=fullstorydev/grpcurl:v1.8.7 --command -- \
/bin/grpcurl -insecure -servername grpc-proxy apisix-gateway:443 yages.Echo.Ping
# It should output:
{
"text": "pong"
}
Expand Down

0 comments on commit de1928e

Please sign in to comment.