Skip to content

Commit

Permalink
Impr
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Dec 1, 2023
1 parent 6de8df0 commit 5e50293
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions app/_src/kubernetes-ingress-controller/guides/services/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
app: grpcbin
spec:
containers:
- image: moul/grpcbin
- image: kong/grpcbin
name: grpcbin
ports:
- containerPort: 9000
Expand All @@ -67,13 +67,13 @@ deployment.apps/grpcbin created
service/grpcbin created
```

### gRPC over HTTPS
## gRPC over HTTPS

## Create a certificate
### Create a certificate

{% include /md/kic/add-certificate.md hostname='example.com' kong_version=page.kong_version cert_required=true %}

## Route gRPC traffic
### Route gRPC traffic

Now that the test application is running, you can create GRPC routing configuration that
proxies traffic to the application:
Expand Down Expand Up @@ -215,21 +215,6 @@ proxies traffic to the application:
{% navtab Gateway API %}
If you are using the Gateway APIs (GRPCRoute), your Gateway needs additional configuration under `listeners`.

```bash
kubectl patch --type=json gateway kong -p='[
{
"op":"add",
"path":"/spec/listeners/-",
"value":{
"name":"grpc",
"port":80,
"protocol":"HTTP"
}
}
]'
```

```bash
echo 'apiVersion: gateway.networking.k8s.io/v1alpha2
kind: GRPCRoute
Expand Down Expand Up @@ -300,7 +285,7 @@ ingress.networking.k8s.io/grpcbin created
Use `grpcurl` to send a gRPC request through the proxy:

```bash
grpcurl -plaintext -d '{"greeting": "Kong"}' -servername example.com $PROXY_IP:80 hello.HelloService.SayHello
grpcurl -plaintext -d '{"greeting": "Kong"}' -authority example.com $PROXY_IP:80 hello.HelloService.SayHello
```

The results should look like this:
Expand Down

0 comments on commit 5e50293

Please sign in to comment.