Skip to main content

Grpc Route

GrpcRoute

Defines the high-level intent for routing gRPC traffic.

Translates this into service mesh or load balancer configurations, supporting features like method-level routing, retry policies, and timeout management.

PropertyTypeDescription
apiVersionstring
kindstring
metadatamap
specSpec

Target

PropertyTypeDescription
kindstring
namestring

Spec

Contains the user-defined routing rules for gRPC traffic. Encapsulates the core logic for matching gRPC requests by service or method and directing them to backend targets.

PropertyTypeDescription
descriptionstringThis description is optional but will drastically improve the understand of the AI assistant about the structural elements of the organization
ruleslist of GrpcRouteRuleA list of rules that define how to match and forward gRPC requests. Each rule in this list is translated into a rules block within the underlying routing infrastructure. The route is associated with an ingress gateway and a hostname derived from the manifest's name.

GrpcRouteRule

GrpcRouteRule

PropertyTypeDescription
matcheslist of GrpcRouteRuleMatch
authenticationlist of RouteRuleAuthenticationConfigRule Authentication Configuration. Defines the authentication configuration for this rule. If not specified, the rule will be unauthenticated.
authorizationlist of ComputedAuthorizationAccessRuleCheckRule Authorization Configuration. Defines the authorization configuration for this rule. If not specified, the rule will be open to all users.

ComputedAuthorizationAccessRuleCheck

Represents a computed access check for a route rule.

Maps an expected identity tuple (namespace, relation, object) that the AuthZ extension must validate during the request flow.

PropertyTypeDescription
namespacestringThis value is a direct reflection of 'spec.authorization.namespace' from a child 'HttpRoute' or 'GrpcRoute' manifest.
relationstringThis value is a direct reflection of 'spec.authorization.relation' from a child 'HttpRoute' or 'GrpcRoute' manifest.
objectstringThis value is a direct reflection of 'spec.authorization.object' from a child 'HttpRoute' or 'GrpcRoute' manifest.

GrpcRouteRuleMatch

GrpcRouteRuleMatch

PropertyTypeDescription
headerslist of GrpcRouteRuleMatchHeader
methodMethodMatch

RouteRuleAuthenticationConfig

Configures authentication exceptions or specifics for a route rule.

Translates into localized Gateway or Load Balancer configurations dictating how auth assertions are evaluated for specific matched paths.

PropertyTypeDescription
typestring
tenantslist of stringTenant-specific authentication configuration. A list of IdentityProvider names allowed to access this route. Only applicable if type is IDENTITY_PROVIDER.

GrpcRouteRuleMatchHeader

Matches gRPC metadata equivalent to HTTP headers.

Appended to a grpc_route to define rules based on custom gRPC metadata sent by the client.

PropertyTypeDescription
keystring
valuestring
typestring

MethodMatch

Matches gRPC traffic by canonical service or method name.

Primary routing discriminator in google_network_services_grpc_route, replacing URL path matches found in HTTP.

PropertyTypeDescription
grpcServicestring
grpcMethodstring
caseSensitivebool