Knative: Operator’s Handbook

gRPC & WebSockets

Non-HTTP protocols such as gRPC and WebSockets require explicit configuration to work with Knative.


gRPC uses HTTP/2 as its transport, which requires marking the container port specifically as h2c (which means unencrypted HTTP/2).

If you have a gRPC server app, make sure:

On the client side, to invoke this gRPC server hosted on Knative:

You can find a sample Go gRPC application here.

Read more about how gRPC calls are load balanced on Knative.


Follow the tutorial here.