Skip to content

Add rewrite support for gRPC #8008

Open
@mrajagopal

Description

@mrajagopal

Description

  • NGINX Ingress Controller supports a gRPC application using VirtualServer resources as found in grpc-upstream example.
  • However the rewrite feature is not supported for GRPC as found in the rewrites example.

Request

Add support for rewriting GRPC requests to upstreams for VS/VSR and Ingress resources

Sample Configuration

NIC VirtualServer:


apiVersion: k8s.nginx.org/v1
kind: VirtualServer
metadata:
  name: grpc-vs
  namespace: $APPNS
spec:
  host: grpcvs.example.com
  tls:
    secret: cafe-secret
  upstreams:
  - name: grpc
    service: grpc-svc
    port: 50051
    type: grpc
  routes:
  - path: /dummy/helloworld.Greeter
    action:
      proxy:
        upstream: grpc
        rewritePath: "/helloworld.Greeter" 

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalAn issue that proposes a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions