This is an automated email from the ASF dual-hosted git repository.

navendu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new de1928e3 docs: update grpc proxy (#1698)
de1928e3 is described below

commit de1928e3887ce9e5bc5ceb243fa76aad4af8077f
Author: Xin Rong <[email protected]>
AuthorDate: Fri Mar 3 14:42:29 2023 +0800

    docs: update grpc proxy (#1698)
    
    Co-authored-by: AlinsRan <[email protected]>
---
 docs/en/latest/tutorials/proxy-grpc-service.md | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/docs/en/latest/tutorials/proxy-grpc-service.md 
b/docs/en/latest/tutorials/proxy-grpc-service.md
index 97832069..93517c10 100644
--- a/docs/en/latest/tutorials/proxy-grpc-service.md
+++ b/docs/en/latest/tutorials/proxy-grpc-service.md
@@ -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
@@ -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"
 }
@@ -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"
 }

Reply via email to