Envoy Gateway + OpenAPI
A gateway is an optional edge in front of your services. It can route native gRPC traffic. With a separately configured transcoder and descriptors, it can also turn an HTTP/JSON request into a gRPC call.
Keep the artifacts separate
OpenAPI describes the API for people and tools. The descriptor set and gateway configuration make the transcoding path work. Native gRPC clients can keep using the gRPC route without REST conversion.
Go deeper
- Configure annotations, descriptors, routes and transcoding.
- Generate the OpenAPI document.
- Check the listener and proxy protocol.
Find a section from the full guide
The detailed material is preserved on a separate page. Earlier section links still work here.
- Request Flow
- Prerequisites
- Step 1: Annotate Proto Files
- Step 2: Generate OpenAPI Spec
- Step 3: Generate Proto Descriptor
- Step 4: Kubernetes Gateway API Resources
- GatewayClass and Gateway
- GRPCRoute (Native gRPC Traffic)
- HTTPRoute (REST-to-gRPC Transcoding)
- Step 5: Envoy Filter for gRPC-JSON Transcoding
- Step 6: Swagger UI Deployment
- Rate Limiting
- Load Balancing
- Full Example: End-to-End Request
- REST Client Sends Request
- What Happens Under the Hood
- Native gRPC Client (Unchanged)
- CI/CD: Automate Proto Descriptor Generation
- Verify the integration
- What's Next